Tutorial Count Script Excecution Time
$execution_time = microtime(); # Start counting # Your code $execution_time = microtime() - $execution_time; $execution_time = sprintf('...

https://iskablogs.blogspot.com/2014/03/tutorial-count-script-excecution-time.html
$execution_time = microtime(); # Start counting
# Your code
$execution_time = microtime() - $execution_time;
$execution_time = sprintf('It took %.5f sec', $execution_time);
# Your code
$execution_time = microtime() - $execution_time;
$execution_time = sprintf('It took %.5f sec', $execution_time);