经测试代码如下:
/**
* 通过记录开始时间、结束时间计算脚本运行时间
*
* @param
* @arrange (512.笔记) jb51.cc
**/
$time_start = microtime(true);
$time_end = microtime(true);
$time = $time_end - $time_start;
echo 'Script took '.$time.' seconds to exicute';
/*** 来自编程之家 jb51.cc(jb51.cc) ***/
原文链接:https://www.f2er.com/php/528987.html