Page Load Time
by raveendran[ Edit ] 2010-01-29 15:42:44
Page Load Time In PHP
<?php
function PerfStopCount()
{
global $StartAt;
$EndAt = time()+microtime();
$TimeElapsed = round($EndAt - $StartAt,4);
echo "Loaded in ".$TimeElapsed." milliseconds";
}
$StartAt = time() + microtime();
for($i = 0; $i < 100000; $i++) {
$i ^ 2;
}
PerfStopCount();
?>