php calculate program running time

WBOY
Release: 2016-07-29 09:06:37
Original
951 people have browsed it

The

microtime() function returns the current Unix timestamp and microseconds.

echo(microtime());
0.478130001451273280
Copy after login

microtime(true)returns a floating point number
Calculate running time code:

$startTime = microtime(true);
$endTime = microtime(true);
$runTime = ($endTime-$startTime)*1000 . ' ms';
Copy after login
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the PHP calculation program running time, including aspects of the content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!