php计算网页执行时间
microtime():获取毫秒级的UNIX时间戳
<?php $t=microtime(); /* 你要执行的代码 */ echo "哦啦啦啦啦啦啦啦"; $t=microtime()-$t; echo "<br>本次代码执行用了$t毫秒."; ?>
本次代码执行用了$t毫秒."; ?>">
microtime():获取毫秒级的UNIX时间戳
<?php $t=microtime(); /* 你要执行的代码 */ echo "哦啦啦啦啦啦啦啦"; $t=microtime()-$t; echo "<br>本次代码执行用了$t毫秒."; ?>