PHP Code:
function getmicrotime()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$time_start = microtime(1);
for ($i=0; $i < 100000; $i++) {
}
$time_end = microtime(1); $time = $time_end - $time_start;
echo "Script timer: "; echo "[b]$time [/b]"; echo " seconds\n"; ?>
No comments:
Post a Comment