Tracking the script execution time in PHP

July 14, 2021 . 1 MIN READ

https://stackoverflow.com/questions/535020/tracking-the-script-execution-time-in-php

 

$time_start = microtime(true);

 

 

 

 

$time_end = microtime(true);

$execution_time = ($time_end – $time_start);

echo ‘<b>Total Execution Time:</b> ‘.$execution_time.’ Seconds’;

 

Leave a Reply

Your email address will not be published. Required fields are marked *