Created
July 19, 2012 16:54
-
-
Save rkmaier/3145275 to your computer and use it in GitHub Desktop.
PHP::Measue php scripts execution time
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getTime() | |
{ | |
$a = explode (' ',microtime()); | |
return(double) $a[0] + $a[1]; | |
} | |
$Start = getTime(); | |
$End = getTime(); | |
echo "Time taken = ".number_format(($End - $Start),2)." secs"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment