PHP头条
热点:

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


复制代码 代码如下:

/**
  * 程序执行时间
  *
  * @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 );
 }

www.phpzy.comtrue/php/1687.htmlTechArticle显示程序执行时间php函数代码 复制代码 代码如下: /** * 程序执行时间 * * @return int 单位ms */ function execute_time() { $stime = explode ( ' ', SYS_START_TIME ); $etime = explode ( ' ', microtime () ); return numbe...

相关文章

相关频道:

PHP之友评论

今天推荐