PHP Class JBZoo\Utils\Timer

See also: https://github.com/sebastianbergmann/php-timer
Afficher le fichier Open project: jbzoo/utils Class Usage Examples

Méthodes publiques

Свойство Type Description
$requestTime float

Méthodes publiques

Méthode 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 méthode

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

formatMS() public static méthode

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

getRequestTime() public static méthode

Get request time
public static getRequestTime ( ) : float
Résultat float

timeSinceStart() public static méthode

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

Property Details

$requestTime public_oe static_oe property

public static float $requestTime
Résultat float