Skip to content

Instantly share code, notes, and snippets.

@johngrimes
Created May 5, 2009 14:02
Show Gist options
  • Save johngrimes/106981 to your computer and use it in GitHub Desktop.
Save johngrimes/106981 to your computer and use it in GitHub Desktop.
Timing PHP code
$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