Class StopWatchLinux#

Inheritance Relationships#

Base Type#

Class Documentation#

class StopWatchLinux : public StopWatchInterface#

Windows specific implementation of StopWatch.

Public Functions

inline StopWatchLinux()#

Constructor, default.

inline virtual ~StopWatchLinux()#
inline virtual void start()#

Start time measurement.

inline virtual void stop()#

Stop time measurement.

Stop time measurement and increment add to the current diff_time summation variable. Also increment the number of times this clock has been run.

inline virtual void reset()#

Reset time counters to zero.

Reset the timer to 0. Does not change the timer running state but does recapture this point in time as the current start time if it is running.

inline virtual float getTime()#

Time in msec. after start. If the stop watch is still running (i.e. there was no call to stop()) then the elapsed time is returned, otherwise the time between the last start() and stop call is returned

Time in msec. after start. If the stop watch is still running (i.e. there was no call to stop()) then the elapsed time is returned added to the current diff_time sum, otherwise the current summed time difference alone is returned.

inline virtual float getAverageTime()#

Mean time to date based on the number of times the stopwatch has been stopped (ie finished sessions) and the current total time

Time in msec. for a single run based on the total number of COMPLETED runs and the total time.