Created
May 5, 2009 14:02
-
-
Save johngrimes/106981 to your computer and use it in GitHub Desktop.
Timing PHP code
This file contains 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
$timeStart = microtime(true); | |
/* The code that you want to time */ | |
$timeEnd = microtime(true); | |
$duration = $timeEnd - $timeStart; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment