Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** check time execution eg page load */
- $start = time();
- // put a long operation in here
- sleep(2);
- $diff = time() - $start;
- print "This page needed $diff seconds to load :-)";
- // if you want a more exact value, you could use the
- // microtime function
Advertisement
Add Comment
Please, Sign In to add comment