stephen-makrogianni
7/10/2019 - 5:18 AM

Execution time of function

Helpful for testing how long something runs for

$time_start = microtime(true);
$callYourFunction();
$bar = 'Total execution time in seconds: ' . (microtime(true) - $time_start);