PHP Класс JBZoo\Utils\Timer

См. также: https://github.com/sebastianbergmann/php-timer
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$requestTime float

Открытые методы

Метод Описание
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.

Описание методов

format() публичный статический Метод

Formats the elapsed time as a string.
public static format ( float $time ) : string
$time float
Результат string

formatMS() публичный статический Метод

Formats the elapsed time as a string.
public static formatMS ( float $time ) : string
$time float
Результат string

getRequestTime() публичный статический Метод

Get request time
public static getRequestTime ( ) : float
Результат float

timeSinceStart() публичный статический Метод

Formats the elapsed time since the start of the request as a string.
public static timeSinceStart ( ) : float
Результат float

Описание свойств

$requestTime публичное статическое свойство

public static float $requestTime
Результат float