<?php $tstart = microtime(); //starts counter//code here that you want to check execution time$dt = stopBenchmark($tstart, microtime()); //time taken (in msec) for the above code to be executed?>