<?php $START_TIME=microtime(true); //取毫秒级时间 …… $END_TIME=microtime(true); echo round($END_TIME-$START_TIME,3).'秒';
<?php echo '试试高亮代码';
$starttime=time();
执行代码………
$time=time()-$starttime;
echo $time;
?>