timer_start

Versions
mediamosa-21
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.

▾ 4 functions call timer_start()

devel_themer_catch_function in sites/all/modules/devel/devel_themer.module
Intercepts all theme calls (including templates), adds to template log, and dispatches to original theme function. This function gets injected into theme registry in devel_exit().
drupal_http_request in includes/common.inc
Perform an HTTP request.
_batch_process in includes/batch.inc
Process sets in a batch.
_drupal_bootstrap_configuration in includes/bootstrap.inc
Bootstrap configuration: Setup script environment and load settings.php.

Code

includes/bootstrap.inc, line 255

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

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