Tells you how many seconds page loaded in...
sample: Page loaded in 0.001 seconds.
/* This part of the script goes at the top of your page */
<?php
$starttime = explode(' ', microtime());
$starttime = $starttime[1] + $starttime[0];
?>
/* This part of the script goes where you want load time to be displayed */
<?php
$mtime = explode(' ', microtime());
$totaltime = $mtime[0] + $mtime[1] - $starttime;
printf('Page loaded in %.3f seconds.', $totaltime);
?>
just; "Page loaded" should be "Page generated";
we dont know the speed of the connection, or the server's buffer settings, bandwidth trottling, etc; we dont know how long it took to load the page, just how long it took for php to generate the page.
also digibluez: your code dont work at all.. it never calculates how long it took to generate the page.