Powered By Blogger

Friday, September 16, 2016

How can I measure the speed of code written in PHP?

How can I measure the speed of code written in PHP?
$startTime= microtime(true);
/** Write here you code to check **/
/** Write here you code to check **/
$endTime= microtime(true);
echo ‘Time Taken to execute the code:’.$endTime-$startTime

No comments:

Post a Comment