page load time
Posted: Sun Apr 04, 2004 4:56 pm
this is the code im using for page load time
but when it is exicuted i get something like
5.698E-05 seconds
Code: Select all
<?php
$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$starttime = $m_time;
?>
<?php
$round = 8;// The number of decimal places to round the micro time to.
$m_time = explode(" ",microtime());
$m_time = $m_time[0] + $m_time[1];
$endtime = $m_time;
$totaltime = ($endtime - $starttime);
echo "" . round($totaltime,$round) ." seconds";
?>5.698E-05 seconds