码迷,mamicode.com
首页 > Web开发 > 详细

PHP 性能监测

时间:2014-12-25 16:19:57      阅读:220      评论:0      收藏:0      [点我收藏+]

标签:



function proStartTime() {
$mtime1 = explode(" ", microtime());
$startTime = $mtime1[1] + $mtime1[0];
return $startTime;
}

function proEndTime($startTime, $intro) {
$mtime2 = explode(" ", microtime());
$endtime = $mtime2[1] + $mtime2[0];
$totaltime = ($endtime - $startTime);
$totaltime = number_format($totaltime, 7);
echo $intro . " process time: ".$totaltime . ‘<br/>‘;
}

PHP 性能监测

标签:

原文地址:http://www.cnblogs.com/bandbandme/p/4184783.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!