random1 Posted January 6, 2008 Share Posted January 6, 2008 Hey, My website is nearly ready for deployment but there is page load timer issue: The timer I have on my page outputs the page loading in 1199619070.61 seconds. Obviously wrong. The website I've created uses many require() statements (around 10). What's the best Page load timer script? I'm using the script from: http://www.totallyphp.co.uk/code/page_load_time.htm Quote Link to comment https://forums.phpfreaks.com/topic/84724-solved-php-time-to-load-page/ Share on other sites More sharing options...
eRott Posted January 6, 2008 Share Posted January 6, 2008 It is not wrong, you just didn't round the number off that's all. /** * $totaltime, $finish and $start are the variables used by the script * from the link in your post. If you changed the variable names, * do not forget to reflect those changes below. */ $total_time = round(($finish - $start), 4); EDIT: Note, the results would look something like 0.0123. If you wish to change that result, just edit the number in that line of code from 4 to the number of digits you wish to show after the decimal place. Quote Link to comment https://forums.phpfreaks.com/topic/84724-solved-php-time-to-load-page/#findComment-431773 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.