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.

start()

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

stop()

setStartTime(mixed fStartTime)

Sets the start time

getStartTime()

Returns the start time

setEndTime(mixed fEndTime)

Sets the end time

getEndTime()

Returns the end time

getTotalTime(mixed strFormat)

_getMicrotime()

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