Benchmarks execution time

Contains methods to benchmark sections of PHP code.
Create new instances of this class to create new benchmarks.

Class Methods

The following methods can be invoked on instances of this class.


Sets the start time
Calling start does not have perpetual overhead as its simply setting a contact variable to the current time.


setStartTime(mixed fStartTime)

Sets the start time


Returns the start time

setEndTime(mixed fEndTime)

Sets the end time


Returns the end time

getTotalTime(mixed strFormat)


Private helper method to retrieve microtime value
from time as a float.