Codex tools: Log in / create account
Contents |
This function returns the amount of time (in seconds) to generate the page.
<?php timer_stop($display = 0, $precision = 3) ?>
Determine length of time to render page with a precision of 3, 5 and 10 digits.
<?php echo('Seconds: ' . timer_stop(0) . '<br />'); ?>
<?php echo('Seconds: ' . timer_stop(0,5) . '<br />'); ?>
<?php echo('Seconds: '); timer_stop(1,10); echo('<br />'); ?>
Seconds: 0.815
Seconds: 0.81551
Seconds: 0.8155429363
For a comprehensive list of functions, take a look at the category Functions
Also, see Function_Reference