Answers for "checking how long a function takes in php"

PHP
1

php time how long a function takes

<?php
$startTime = microtime(true);

/*stuff is going on*/

echo "Elapsed time is: ". (microtime(true) - $startTime) ." seconds";
Posted by: Guest on December-19-2019

Code answers related to "checking how long a function takes in php"

Browse Popular Code Answers by Language