PHP Класс Profiler\Timer

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$endTime double The time at which the timer was ended.
$startTime double The time at which the timer was started.

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

Метод Описание
__construct ( double | null $startTime = null ) : void Start the timer.
end ( double | null $time = null ) : void End the timer.
getElapsedTime ( ) : double Get the amount of time (in milliseconds) that elapsed while the timer was turned on.

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

__construct() публичный Метод

Start the timer.
public __construct ( double | null $startTime = null ) : void
$startTime double | null
Результат void

end() публичный Метод

End the timer.
public end ( double | null $time = null ) : void
$time double | null
Результат void

getElapsedTime() публичный Метод

Get the amount of time (in milliseconds) that elapsed while the timer was turned on.
public getElapsedTime ( ) : double
Результат double

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

$endTime защищенное свойство

The time at which the timer was ended.
protected double $endTime
Результат double

$startTime защищенное свойство

The time at which the timer was started.
protected double $startTime
Результат double