Skip to content

Instantly share code, notes, and snippets.

@rkmaier
Created July 19, 2012 16:54
Show Gist options
  • Save rkmaier/3145275 to your computer and use it in GitHub Desktop.
Save rkmaier/3145275 to your computer and use it in GitHub Desktop.
PHP::Measue php scripts execution time
<?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