Class StopWatch

Class Documentation

class StopWatch

Stop Timer used to measure time intervals.

Public Functions

inline StopWatch()

StopWatch constructor. Automatically starts time measurement.

inline virtual ~StopWatch()
inline void tic()

Set the beginning time of the time measurement.

inline double toc()

Calculates the seconds elapsed from the last tic.

Returns:

the seconds elapsed from the last tic with microseconds resolution.