View Single Post
Old 11-09-2008, 08:59 AM   #2 (permalink)
martins256
The Wanderer
Good Samaritan 
 
martins256's Avatar
 
Join Date: Mar 2008
Posts: 18
Thanks: 0
martins256 is on a distinguished road
Default

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.
martins256 is offline  
Reply With Quote