Calculate the execution time of a method in PHP
measure php execution time
Clock time can get using microtime() function. First use it before starts the script and then at the end of the script. Then using formula (End_time – Start_time). The mirotime() function returns time in seconds.
Execution time of script = 1.6927719116211E-5 sec