is there any function in php through which we can fast the execution time of php script
+2
A:
Assuming PHP 5 you can compute duration in seconds (with millisecond accuracy) as:
<?php
$start = microtime(true);
// code
$duration = microtime(true) - $start;
?>
Further reading in the PHP manual.
Mark E
2009-08-26 04:10:46
A:
Anirudh Goel
2009-08-26 04:28:07