Last active
December 24, 2015 09:19
-
-
Save LeoOnTheEarth/6776682 to your computer and use it in GitHub Desktop.
show execution time with PHP build-in server
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
<?php | |
register_shutdown_function(function () { | |
echo 'execution time: ' . (microtime(true) - $_SERVER['REQUEST_TIME_FLOAT']) . ' seconds.'; | |
}); | |
return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment