php输出程序执行时间

php教程9年前 (2016-09-08)16300

$stime=microtime(true);
....编程代码
$etime=microtime(true);
$total=$etime-$stime;
echo "<br> -- 执行时间:$total ";
ob_flush();
flush();

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。