esedic
7/1/2015 - 12:23 PM

Measure PHP execution time

Measure PHP execution time

 <?php 
 $start = microtime(true);
 $rand = rand(1, 100000);
 echo $rand.'<br>';
 $time =  $start - $_SERVER["REQUEST_TIME_FLOAT"];
 echo  '<br> Time elapsed: '.$time;
 ?>