PHP Class JBZoo\Utils\Timer

See also: https://github.com/sebastianbergmann/php-timer
显示文件 Open project: jbzoo/utils Class Usage Examples

Public Properties

Property Type Description
$requestTime float

Public Methods

Method Description
format ( float $time ) : string Formats the elapsed time as a string.
formatMS ( float $time ) : string Formats the elapsed time as a string.
getRequestTime ( ) : float Get request time
timeSinceStart ( ) : float Formats the elapsed time since the start of the request as a string.

Method Details

format() public static method

Formats the elapsed time as a string.
public static format ( float $time ) : string
$time float
return string

formatMS() public static method

Formats the elapsed time as a string.
public static formatMS ( float $time ) : string
$time float
return string

getRequestTime() public static method

Get request time
public static getRequestTime ( ) : float
return float

timeSinceStart() public static method

Formats the elapsed time since the start of the request as a string.
public static timeSinceStart ( ) : float
return float

Property Details

$requestTime public_oe static_oe property

public static float $requestTime
return float