我们在代码的开始部分加上
$start=microtime(true);
我们在代码结束的地方加上
$end=microtime(true);
然后用时间差 就能计算出代码运行时间
如何检查php代码执行时间