timer_start

  1. drupal
    1. 4.7 bootstrap.inc
    2. 5 bootstrap.inc
    3. 6
    4. 7
Versions
4.7 – 7 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.

Parameters

name The name of the timer.

▾ 3 functions call timer_start()

drupal_http_request in drupal/includes/common.inc
Perform an HTTP request.
_batch_process in drupal/includes/batch.inc
Process sets in a batch.
_drupal_bootstrap_configuration in drupal/includes/bootstrap.inc
Bootstrap configuration: Setup script environment and load settings.php.

Code

drupal/includes/bootstrap.inc, line 257

<?php
function timer_start($name) {
  global $timers;

  $timers[$name]['start'] = microtime(TRUE);
  $timers[$name]['count'] = isset($timers[$name]['count']) ? ++$timers[$name]['count'] : 1;
}
?>