Class RepeatedTimer

Class Documentation

class RepeatedTimer

Timer class that can be repeatedly started and stopped. Statistics are collected for all measured intervals .

Public Functions

inline RepeatedTimer()
inline void reset()

Reset the timer statistics

inline void startTimer()

Start timing an interval

inline void endTimer()

Stop timing of an interval

inline int getNumTimedIntervals() const
Returns:

Number of intervals that were timed

inline scalar_t getTotalInMilliseconds() const
Returns:

Total cumulative time of timed intervals

inline scalar_t getMaxIntervalInMilliseconds() const
Returns:

Maximum duration of a single interval

inline scalar_t getLastIntervalInMilliseconds() const
Returns:

Duration of the last timed interval

inline scalar_t getAverageInMilliseconds() const
Returns:

Average duration of all timed intervals