$start_time = microtime(true); // ... 执行代码 ...$end_time = microtime(true);echo '共'.round($start_time-$end_time,3).'秒';