ICRS Eurobot 2013

Dependencies:   mbed mbed-rtos Servo QEI

Embed: (wiki syntax)

« Back to documentation index

Timer Class Reference

Timer Class Reference

A quick& dirty portable timer, measures elapsed time. More...

#include <tvmet/util/Timer.h>

Public Member Functions

 Timer ()
 starts the timer immediatly.
void restart ()
 restarts the timer
time_t elapsed () const
 return elapsed time in seconds

Detailed Description

A quick& dirty portable timer, measures elapsed time.

It is recommended that implementations measure wall clock rather than CPU time since the intended use is performance measurement on systems where total elapsed time is more important than just process or CPU time.

The accuracy of timings depends on the accuracy of timing information provided by the underlying platform, and this varies from platform to platform.

Definition at line 52 of file Timer.h.


Constructor & Destructor Documentation

Timer (  )

starts the timer immediatly.

Definition at line 62 of file Timer.h.


Member Function Documentation

time_t elapsed (  ) const

return elapsed time in seconds

Definition at line 68 of file Timer.h.

void restart (  )

restarts the timer

Definition at line 65 of file Timer.h.