timer_start

Definition

timer_start()
includes/bootstrap.inc, line 563

Description

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

Code

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

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.