Last active
September 3, 2016 16:57
-
-
Save AucT/47f6a33dc35f447a93dcebe3f9d9533b to your computer and use it in GitHub Desktop.
simple page generation time
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 | |
$time_start = microtime(true); | |
//Your Content (i use sleep 2 seconds to for demo) | |
sleep(2); | |
$time_end = microtime(true); | |
$time = $time_end - $time_start; | |
echo 'Page generated in: '.$time.' seconds'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment