自己写了个计算页面执行时间的脚本
执行时间会显示在页面右上角
优点是只要在开始的时候执行一下就可以了
代码片段(1) [代码] [php]代码 01 microtime = microtime(true); 10 } 11 12 public function getnow(){ 13 $this->__dectruct(); 14 } 15 16 public function __destruct(){ 17 if (empty($_server['request_time_float'])) 18 echo '本次执行时间:', microtime(true) - $this->microtime, '秒
'; 19 else 20 echo '本次执行时间:', microtime(true) - $_server['request_time_float'], '秒
'; 21 } 22 }
http://www.bkjia.com/phpjc/735157.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/735157.htmltecharticle自己写了个计算页面执行时间的脚本 执行时间会显示在页面右上角 优点是只要在开始的时候执行一下就可以了 代码片段 (1) [代码] [php]代码...