Skip to content

Instantly share code, notes, and snippets.

@NightOwlPrgmr
Last active August 31, 2015 18:21
Show Gist options
  • Save NightOwlPrgmr/af8f61c685985d317500 to your computer and use it in GitHub Desktop.
Save NightOwlPrgmr/af8f61c685985d317500 to your computer and use it in GitHub Desktop.
PHP Execution Time
<?php
# execution time (at script start)
$beginTime = microtime(true);
# execution time (upon script end)
$output["time"] = number_format(microtime(true) - $beginTime, 2) . " seconds";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment