Answers for "php time how long it takes to do something"

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 "php time how long it takes to do something"

Browse Popular Code Answers by Language