Ok, so I'm confused as to what's going on here... I've been trying for hours now to get a relatively accurate page load timer setup on my WordPress site, but nothing is working like it's supposed to.
I've added this code to my theme's header.php file as the very first block of code:
<?php $exectime = microtime(); $exectime = explode(" ",$exectime); $exectime = $exectime + $exectime; $starttime = $exectime; ?>
and then I added this block of code as the very last thing in my theme's footer.php file:
<?php $exectime = microtime(); $exectime = explode(" ",$exectime); $exectime = $exectime + $exectime; $endtime = $exectime; $totaltime = ($endtime - $starttime); echo '<!-- page rendered in '.$totaltime.' seconds -->'; ?>
but rather than getting a somewhat accurate representation of how long it took the page to load, I'm getting these gargantuan numbers that I know aren't even close to accurate...
Here's one example result:
</body> </html> <!-- page rendered in 1321818086.6252 seconds -->