Code: Select all
speedMon('mySample'); //1st call = sequence Start of "mySample"
....
speedMon('mySample'); //2nd call = measure elapsed time of "mySample"
...
speedMon('myOtherSample'); //3nd call = sequence Start of "mySample"
...
speedMon('myOtherSample'); //4nd call = measure elapsed time of "myOtherSample"
...
echo speedMon(); //call at the end of template: outputs the elapsed time of your samples
I'm waiting for comments, request etc.
Download
regards & have fun
manu