Q695 Posted September 9, 2014 Share Posted September 9, 2014 Is there a way to run a check on the server to see how long it takes for the page to get built, then print it to the screen? I tried searching for it online for a few minutes, but it wasn't able to be found. All I'm finding on there is how to optimize the pages, but I want a simple time check performed on the page loading Quote Link to comment Share on other sites More sharing options...
ginerjm Posted September 9, 2014 Share Posted September 9, 2014 You tried searching on line for a few mins? Sometimes it takes longer than that. Did you search the php manual? Use the php time functions. Microtime for instance. Quote Link to comment Share on other sites More sharing options...
Solution cyberRobot Posted September 9, 2014 Solution Share Posted September 9, 2014 You could use microtime(): http://php.net/manual/en/function.microtime.php 1 Quote Link to comment Share on other sites More sharing options...
Q695 Posted September 9, 2014 Author Share Posted September 9, 2014 You could use microtime(): http://php.net/manual/en/function.microtime.php Is that the same one the PHP engine uses when reporting errors to the user? Quote Link to comment Share on other sites More sharing options...
Psycho Posted September 9, 2014 Share Posted September 9, 2014 I used your exact wording (which I wouldn't use) and did a Google search: "PHP how long it takes for the page to get built" and lo and behold the fourth result provided an answer to what you are looking for. Quote Link to comment Share on other sites More sharing options...
Q695 Posted September 10, 2014 Author Share Posted September 10, 2014 I used your exact wording (which I wouldn't use) and did a Google search: "PHP how long it takes for the page to get built" and lo and behold the fourth result provided an answer to what you are looking for. should've dug deeper than the top 3 XD Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.