timer_stop

Хочешь помочь с переводом? Это очень просто и быстро. Лишь зарегистрируйся, и можешь тут же начать переводить.

includes/bootstrap.inc, строка 156

Версии
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];
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему