Skip to content

Instantly share code, notes, and snippets.

@AucT
Last active September 3, 2016 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AucT/47f6a33dc35f447a93dcebe3f9d9533b to your computer and use it in GitHub Desktop.
Save AucT/47f6a33dc35f447a93dcebe3f9d9533b to your computer and use it in GitHub Desktop.
simple page generation time
<?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