Skip to content

Instantly share code, notes, and snippets.

@eddturtle
Last active June 10, 2016 09:30
Show Gist options
  • Save eddturtle/10847108 to your computer and use it in GitHub Desktop.
Save eddturtle/10847108 to your computer and use it in GitHub Desktop.
PHP Execution Timing
<?php
// http://stackoverflow.com/questions/17035859/how-to-find-php-execution-time
sleep(1);
$time = microtime(true) - $_SERVER["REQUEST_TIME_FLOAT"];
echo "Process Time: {$time}";
// Process Time: 1.0061590671539
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment