timer_stop
includes/bootstrap.inc, строка 192
- Версии
- 5 – 6
timer_stop($name)
Stop the timer with the specified name.
Параметры
name The name of the timer.
Возвращаемое значение
A timer array. The array contains the number of times the timer has been started and stopped (count) and the accumulated timer value in ms (time).
Код
<?php
function timer_stop($name) {
global $timers;
$timers[$name]['time'] = timer_read($name);
unset($timers[$name]['start']);
return $timers[$name];
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии