$sTime = microtime(true);
代码块
$eTime = microtime(true);
$time = $eTime - $sTime;
echo '程序执行时间是'.$time;