Same name and namespace in other branches
- 4.7.x includes/bootstrap.inc \timer_start()
- 5.x includes/bootstrap.inc \timer_start()
- 6.x includes/bootstrap.inc \timer_start()
- 7.x includes/bootstrap.inc \timer_start()
Begin a global timer, for benchmarking of page execution time.
1 call to timer_start()
- drupal_page_header in includes/
bootstrap.inc - Set HTTP headers in preparation for a page response.
File
- includes/
bootstrap.inc, line 563 - Functions that need to be loaded on every Drupal request.
Code
function timer_start() {
global $timer;
list($usec, $sec) = explode(' ', microtime());
$timer = (double) $usec + (double) $sec;
}