jdl_bench有哪些具体应用场景?
- 内容介绍
- 文章标签
- 相关推荐
本文共计131个文字,预计阅读时间需要1分钟。
plaintext记录开始时间:microtime()public function start_bench(){ $this->start_time=microtime();}
public function end_bench(){ $this->end_time=microtime(); $this->execute_time=$this->end_time - $this->start_time; if (SHOW_BENCH) { echo 执行时间:{$this->execute_time}; }}
gistfile1.txtstart_time = microtime(); } public function start_bench(){ $this->start_time = microtime(); } public function end_bench(){ $this->end_time = microtime(); $this->execute_time = $this->end_time - $this->start_time; if(SHOW_BENCH) var_dump($this->execute_time); } }
本文共计131个文字,预计阅读时间需要1分钟。
plaintext记录开始时间:microtime()public function start_bench(){ $this->start_time=microtime();}
public function end_bench(){ $this->end_time=microtime(); $this->execute_time=$this->end_time - $this->start_time; if (SHOW_BENCH) { echo 执行时间:{$this->execute_time}; }}
gistfile1.txtstart_time = microtime(); } public function start_bench(){ $this->start_time = microtime(); } public function end_bench(){ $this->end_time = microtime(); $this->execute_time = $this->end_time - $this->start_time; if(SHOW_BENCH) var_dump($this->execute_time); } }

