PHP mico time , i want to process my application using microtime
+3
A:
I think the script example from PHP.net, for PHP5, is pretty straight forward.
<?php
// Put this at the start of your script
$time_start = microtime(true);
// This is where your script should be executing,
// but instead, we sleep for a while
usleep(100);
// Calculation at the end of the script
$time_end = microtime(true);
$time = $time_end - $time_start;
// Do something with the results
echo "Did nothing in $time seconds\n";
?>
sshow
2010-07-27 12:24:11