Kamui.S Posted November 15, 2005 Share Posted November 15, 2005 how do i show the pages generation time on the page like this? This page was generated in 0.526 seconds Link to comment Share on other sites More sharing options...
jameslee Posted November 15, 2005 Share Posted November 15, 2005 actually from bluedragon. from devshed <? // At the beginning of the page $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $start = $time; // -------------- // your code here // -------------- // At the end of the page $time = microtime(); $time = explode(' ', $time); $time = $time[1] + $time[0]; $finish = $time; $total_time = round(($finish - $start), 6); ?> Link to comment Share on other sites More sharing options...
Kamui.S Posted November 15, 2005 Author Share Posted November 15, 2005 Thanx alot! cant test it out right now cause i have to go to school! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now