timer_start

Versions
4.6
timer_start()
4.7 – 7
timer_start($name)

Begin a global timer, for benchmarking of page execution time.

▾ 1 function calls timer_start()

drupal_page_header in includes/bootstrap.inc
Set HTTP headers in preparation for a page response.

Code

includes/bootstrap.inc, line 563

<?php
function timer_start() {
  global $timer;
  list($usec, $sec) = explode(' ', microtime());
  $timer = (float)$usec + (float)$sec;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.