function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec (float)$sec);
}
$time_start = getmicrotime();//开始计时, 放在程序头
for ($i=0; $i
//do nothing, 1000 times
}
$time_end = getmicrotime();//结束计时, 放在尾部
$time = $time_end - $time_start;
echo "Did nothing in $time seconds";
已抢65733个
抢已抢31883个
抢已抢17528个
抢已抢8847个
抢已抢11437个
抢已抢23723个
抢