Runescape Bits & Bytes https://www.rsbandb.com/forums/ |
|
Newbie Tutorial - Generation Time https://www.rsbandb.com/forums/viewtopic.php?f=38&t=14359 |
Page 1 of 1 |
Author: | Elvadar [ August 1st, 2005, 9:48 am ] |
Post subject: | Newbie Tutorial - Generation Time |
When making a php document, add this to the body: Code: <?php $start = microtime(); $split = explode(" ", $start); $start_exact = $split[0]; $start_seconds = date("U"); $start_time = $start_exact + $start_seconds; ?> Then, add this to the place where you want the Generation Time to appear: Code: <?php
$end = microtime(); $split = explode(" ", $end); $end_exact = $split[0]; $end_seconds = date("U"); $end_time = $end_exact + $end_seconds; $difference = $end_time - $start_time; $time = round($difference, 5); ?> Page generated in <?php echo $time; ?> seconds. Elvadar |
Author: | Adbot [ August 1st, 2005, 9:48 am ] |
Post subject: | Register and login to get these in-post ads to disappear |
Author: | Jeff [ August 1st, 2005, 11:30 am ] |
Post subject: | |
OK, you got the generation time there, any help on getting the variable of how many mySQL queries where processed? |
Author: | Samuel [ August 8th, 2005, 8:29 am ] |
Post subject: | |
yay now i can make buddys!!! lol! ![]() (ive got my own buddy shop!!!!!!!!! ![]() nice guide this will stop me tellin ppl how 2 do it! |
Author: | Jeff [ August 8th, 2005, 11:58 am ] |
Post subject: | |
P0is0n Bl00d wrote: yay now i can make buddys!!! lol!
![]() (ive got my own buddy shop!!!!!!!!! ![]() nice guide this will stop me tellin ppl how 2 do it! OK. Thats off topic and spam. |
Page 1 of 1 | All times are UTC - 7 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |