PHP Simple calculation of page load time method, PHP calculation page load
This article describes a simple way to calculate page load time in PHP. Share to everyone for your reference. The implementation method is as follows:
Simply put the start time on the page header, end time on the tail of the page, calculate the page load time
$start = time ();//Put a long operation in Heresleep (2), $diff = time ()-$start;p rint "This page needed $diff seconds to L Oad:-) ",//If you want a more exact value, you could use the//Microtime function
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/1019449.html www.bkjia.com true http://www.bkjia.com/PHPjc/1019449.html techarticle PHP Simple Calculation page load time method, PHP calculation page Load This article describes the PHP simple calculation page load time method. Share to everyone for your reference. Concrete Implementation Method ...