BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
PHP_Timer Class Reference

Static Public Member Functions

static start ()
 
static stop ()
 
static secondsToTimeString ($time)
 
static timeSinceStartOfRequest ()
 
static resourceUsage ()
 

Static Public Attributes

static $requestTime
 

Detailed Description

Utility class for timing.

Member Function Documentation

static PHP_Timer::resourceUsage ( )
static

Returns the resources (time, memory) of the request as a string.

Returns
string
static PHP_Timer::secondsToTimeString (   $time)
static

Formats the elapsed time as a string.

Parameters
float$time
Returns
string
static PHP_Timer::start ( )
static

Starts the timer.

static PHP_Timer::stop ( )
static

Stops the timer and returns the elapsed time.

Returns
float
static PHP_Timer::timeSinceStartOfRequest ( )
static

Formats the elapsed time since the start of the request as a string.

Returns
string

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