If what you are looking for is the wall-clock time, rather than the CPU execution time, then here is simple code to calculate:
Place this at the top of your page
$time_start = microtime(true);
and this at the very bottom of that page.
echo "<br><b>Process took ". number_format(microtime(true) - $time_start, 2). " seconds.</b>";
and thats it!