timer_start
function timer_start
timer_start($name)
Starts the timer with the specified name.
If you start and stop the same timer multiple times, the measured intervals will be accumulated.
Parameters
$name: The name of the timer.
File
- includes/bootstrap.inc, line 469
- Functions that need to be loaded on every Drupal request.
Code
function timer_start($name) { global $timers; $timers[$name]['start'] = microtime(TRUE); $timers[$name]['count'] = isset($timers[$name]['count']) ? ++$timers[$name]['count'] : 1; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!bootstrap.inc/function/timer_start/7.x