Semantic MediaWiki and related extensions
Public Member Functions | Static Public Member Functions | List of all members
SMW\Utils\Timer Class Reference

Public Member Functions

 new ( $name)
 
 stop ( $name)
 
 getTimes ()
 

Static Public Member Functions

static getTimestamp ( $outputType=TS_UNIX, $ts=0)
 
static start ( $name)
 
static getElapsedTime ( $name, $round=null)
 
static getElapsedTimeAsLoggableMessage ( $name, $round=null)
 

Detailed Description

GNU GPL v2+

Since
2.5
Author
mwjames

Member Function Documentation

◆ getElapsedTime()

static SMW\Utils\Timer::getElapsedTime (   $name,
  $round = null 
)
static
Since
2.5
Parameters
string$name
integer | null$round
Returns
float|integer

◆ getElapsedTimeAsLoggableMessage()

static SMW\Utils\Timer::getElapsedTimeAsLoggableMessage (   $name,
  $round = null 
)
static
Since
3.0
Parameters
string$name
integer | null$round
Returns
string

◆ getTimes()

SMW\Utils\Timer::getTimes ( )
Since
3.2

◆ getTimestamp()

static SMW\Utils\Timer::getTimestamp (   $outputType = TS_UNIX,
  $ts = 0 
)
static
Since
3.0
Parameters
integer$outputType
integer$ts
Returns
string|bool

◆ new()

SMW\Utils\Timer::new (   $name)
Since
3.2

◆ start()

static SMW\Utils\Timer::start (   $name)
static
Since
2.5

◆ stop()

SMW\Utils\Timer::stop (   $name)
Since
3.2

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy