11-09-2008, 08:59 AM
|
#2 (permalink)
|
|
The Wanderer
Join Date: Mar 2008
Posts: 18
Thanks: 0
|
You can use it for benchmarking. Do something like this:
Code:
<?php
//put this at the top of your script
$time_start = microtime(true);
// here should be all your php stuff
usleep(100);
//finally get the time php needed to execute everything.
$time_end = microtime(true);
$time = $time_end - $time_start;
echo "Did nothing in $time seconds\n";
?>
If you want something better for benchmarking try xdebug.
|
|
|
|