PHP获取PHP执行的时间
php获取PHP执行的时间
<pre>
//程序运行时间
$starttime = explode(' ',microtime());
//代码区域
//程序运行时间
$endtime = explode(' ',microtime());
$thistime = $endtime[0]+$endtime[1]-($starttime[0]+$starttime[1]);
$thistime = round($thistime,3);
echo "本网页执行耗时:".$thistime." 秒。".time();
exit();
</pre>
- 上一篇 »PHP一行代码获取时间戳
- 下一篇 »如何用php获取下月的时间戳?