PHP Класс Elgg\Timer

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

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

Метод Описание
begin ( array $keys ) : void Record the start time of a period
end ( array $keys ) : void Record the end time of a period
getTimes ( ) : array Get the tree of recorded start/end times
hasEnded ( array $keys ) : boolean Has the end of the period been recorded?

Приватные методы

Метод Описание
getTreeNode ( array $keys ) : array Get a reference to the period array for the given keys

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

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

Record the start time of a period
public begin ( array $keys ) : void
$keys array Keys to identify period. E.g. ['startup', __FUNCTION__]
Результат void

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

Record the end time of a period
public end ( array $keys ) : void
$keys array Keys to identify period. E.g. ['startup', __FUNCTION__]
Результат void

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

Get the tree of recorded start/end times
public getTimes ( ) : array
Результат array

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

Has the end of the period been recorded?
public hasEnded ( array $keys ) : boolean
$keys array Keys to identify period. E.g. ['startup', __FUNCTION__]
Результат boolean