Answers for "set time for how long function can run 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 "set time for how long function can run php"

Browse Popular Code Answers by Language