首页 > IT职业 > IT职场 > php 计算页面执行时间
$runtime_start = microtime(true); //程序开始处
$runtime_stop = microtime(true); //程序结尾处
echo "耗时: ".round($runtime_stop-$runtime_start,6)." second(s)";
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1741/viewspace-2809465/ ,如需转载,请注明出处,否则将追究法律责任。