function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$time_start = microtime_float();
// Sleep for a while
usleep(100);
$time_end = microtime_float();
$time = $time_end - $time_start;
echo "Did nothing in $time seconds ";
?>php中测量程序运行时间
最新推荐文章于 2025-12-06 15:19:30 发布
1215

被折叠的 条评论
为什么被折叠?



