| 5 bootstrap.inc | timer_stop($name) |
| 6 bootstrap.inc | timer_stop($name) |
| 7 bootstrap.inc | timer_stop($name) |
| 8 bootstrap.inc | timer_stop($name) |
Stop the timer with the specified name.
Parameters
name: The name of the timer.
Return value
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).
File
- includes/
bootstrap.inc, line 270 - Functions that need to be loaded on every Drupal request.
Code
function timer_stop($name) {
global $timers;
$timers[$name]['time'] = timer_read($name);
unset($timers[$name]['start']);
return $timers[$name];
}
Login or register to post comments
Comments
Related timer functions
http://api.drupal.org/api/function/timer_start/6
http://api.drupal.org/api/function/timer_stop/6
http://api.drupal.org/api/function/timer_read/6