4.6.x bootstrap.inc timer_start()
4.7.x bootstrap.inc timer_start($name)
5.x bootstrap.inc timer_start($name)
6.x bootstrap.inc timer_start($name)
7.x bootstrap.inc timer_start($name)

Start the timer with the specified name. If you start and stop the same timer multiple times, the measured intervals will be accumulated.


name: The name of the timer.

2 calls to timer_start()
drupal_http_request in includes/common.inc
Perform an HTTP request.
_batch_process in includes/batch.inc
Advance batch processing for 1 second (or process the whole batch if it was not set for progressive execution - e.g forms submitted by drupal_execute).


includes/bootstrap.inc, line 229
Functions that need to be loaded on every Drupal request.


function timer_start($name) {
  global $timers;
  list($usec, $sec) = explode(' ', microtime());
  $timers[$name]['start'] = (double) $usec + (double) $sec;
  $timers[$name]['count'] = isset($timers[$name]['count']) ? ++$timers[$name]['count'] : 1;