查看PHP代码执行的时间

  

$t1 = microtime(true);
//...要执行的代码
$t2
= microtime(true); echo '耗时'.round($t2-$t1,3).'秒';

posted on 2016-04-10 00:44  studyphp  阅读(351)  评论(0编辑  收藏  举报

导航