| Versionen | |
|---|---|
| drupal6 – drupal7 | 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).
includes/
<?php
function timer_stop($name) {
global $timers;
$timers[$name]['time'] = timer_read($name);
unset($timers[$name]['start']);
return $timers[$name];
}
?>
Kommentare
Kommentar hinzufügen