E-mail:vova@vbeg.ru
Skype:vova-beglecov

Tracking the script execution time in PHP

For measuring the speed of script execution in PHP uses the function microtime();
microtime() returns the current Unix timestamp with microseconds.

mixed microtime ([ bool $get_as_float = false ] )

Code example of the speed measurement
$start_time = microtime(true); 
//script code
echo 'Execution time: '.(microtime(true) - $start_time).' s.';