php 更精确获取脚本执行时间

来源:互联网 发布:竞彩足球软件 编辑:程序博客网 时间:2024/06/06 13:08
用 microtime() 而不是 用 time()

<?php
$t         = explode(' ',microtime());
$startTime = $t[0]+$t[1];
echo $startTime;
?>
0 0
原创粉丝点击