Created
December 1, 2014 14:41
-
-
Save khoand0000/f628f62d47f4613d425a to your computer and use it in GitHub Desktop.
Calculate the time needed to run a certain function. ref: http://stackoverflow.com/questions/4068322/calculate-the-time-needed-to-run-a-certain-function
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
$start = microtime(true); | |
// your code | |
$end = microtime(true); | |
echo ($end - $start).' seconds'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment