function microtime_float() {
list($usec, $sec) = explode(' ',microtime());
return ((float)$usec + (float)$sec);
}
//start
$starttime = microtime_float();
//end
$runtime = number_format((microtime_float() - $starttime),4).'s';
echo $runtime;
开始结束时间计时
最新推荐文章于 2022-10-23 10:42:22 发布