当前位置:Gxlcms > PHP教程 > 显示程序执行时间php函数代码_PHP教程

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

时间:2021-07-01 10:21:17 帮助过:20人阅读

代码如下:
/**
* 程序执行时间
*
* @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.bkjia.comtruehttp://www.bkjia.com/PHPjc/313685.htmlTechArticle 代码如下:

/** * 程序执行时间 * * @return int 单位ms */ function execute_time() { $stime = explode ( ' ', SYS_START_TIME ); $etime = explode ( ' ', microtim...

人气教程排行