|
Fawkes API
Fawkes Development Version
|
#include <>>
Public Member Functions | |
| Watch (Clock *clock) | |
| Constructor. More... | |
| virtual | ~Watch () |
| Destructor. More... | |
| void | start (Time *t=0) |
| Starts the watch. More... | |
| void | stop (Time *t=0) |
| Stops the watch. More... | |
| void | pause (Time *t=0) |
| Pauses the watch. More... | |
| void | reset () |
| Reset time. More... | |
| Time | watch_time () |
| Returns the current watch time. More... | |
| Time | clock_time () |
| Returns the current clock time. More... | |
This is a stop-watch. Also, one can request the current time from the clock. Every watch counts time w.r.t. a certain time source.
| fawkes::Watch::Watch | ( | Clock * | clock | ) |
|
virtual |
| Time fawkes::Watch::clock_time | ( | ) |
| void fawkes::Watch::pause | ( | Time * | t = 0 | ) |
| void fawkes::Watch::reset | ( | ) |
| void fawkes::Watch::start | ( | Time * | t = 0 | ) |
| void fawkes::Watch::stop | ( | Time * | t = 0 | ) |
Stops the watch.
This stops the watch also when it is paused, currently
| t | the time at which the watch is started is written to this time object |
Definition at line 94 of file watch.cpp.
References fawkes::Time::set_time().
| Time fawkes::Watch::watch_time | ( | ) |