At first I thought that this was due to the fact, maybe a variable name I was using had already been used somewhere in picKLE. But I changed all the variables and still, the same happens. It still seems to think the render time is around 1,125,770,260.7810, which happens to be about 35 years, and I don't recall waiting 35 years for the page to load. The code I'm currently using looks like so:
Page Top:
$MYstarttime = microtime();
Page Bottom:
render: <?php
$MYendtime = microtime();
$MYstime = explode(' ', $MYstarttime);
$MYstart = $MYstime[0] + $MYstime[1];
$MYetime = explode(' ', $MYendtime);
$MYend = $MYetime[0] + $MYetime[1];
echo number_format($MYend - $MYstart, 4);
?>
$MYendtime = microtime();
$MYstime = explode(' ', $MYstarttime);
$MYstart = $MYstime[0] + $MYstime[1];
$MYetime = explode(' ', $MYendtime);
$MYend = $MYetime[0] + $MYetime[1];
echo number_format($MYend - $MYstart, 4);
?>
Does anyone have any idea's on what could be causing the problem? or even if there's a better way of checking the render time?
RSS
I use this
<?php
$precision = 8;
list($susec, $ssec) = explode(" ", $start);
list($eusec, $esec) = explode(" ", $finish);
$start = (float)$ssec + (float)$susec;
$finish = (float)$esec + (float)$eusec;
echo number_format($finish - $start, $precision);
?>
but thats part of my timer class, available here
weblog.source.geffy.co.uk