Forum Moderators: coopster
we insert right at the top of the main php script (before any includes)
// function to measure speed of page
function getmicrotime($t)
{
list($usec, $sec) = explode(" ",$t);
return ((float)$usec + (float)$sec);
}
$starttime = microtime(); then at the bottom
$endtime = microtime();
$diff = getmicrotime($endtime) - getmicrotime($starttime); then you echo out $diff. i didn't code this myself but just copied from somewhere ;)