Home > Backend Development > PHP Tutorial > Display program execution time php function code_PHP tutorial

Display program execution time php function code_PHP tutorial

WBOY
Release: 2016-07-21 16:12:23
Original
888 people have browsed it

Copy code The code is as follows:

/**
* Program execution time
*
* @return int unit 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.htmlTechArticleCopy the code The code is as follows: /*** Program execution time * * @return int unit ms*/ function execute_time() { $stime = explode ( ' ', SYS_START_TIME ); $etime = explode ( ' ', microtim...
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template