Home > php教程 > php手册 > 显示程序执行时间php函数代码

显示程序执行时间php函数代码

WBOY
Release: 2016-06-13 12:47:33
Original
882 people have browsed it

复制代码 代码如下:


/**
  * 程序执行时间
  *
  * @return  int 单位ms
  */
 function execute_time() {
     $stime = explode ( ' ', SYS_START_TIME );
     $etime = explode ( ' ', microtime () );
     return number_format ( ($etime [1] + $etime [0] - $stime [1] - $stime [0]), 6 );
 }

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template