Answers for "time in long 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

Browse Popular Code Answers by Language