Fawkes API
Fawkes Development Version
|
TimeSource interface. More...
#include <timesource.h>
Public Member Functions | |
virtual | ~TimeSource () |
Destructor. | |
virtual void | get_time (timeval *tv) const =0 |
Get the current time. | |
virtual timeval | conv_to_realtime (const timeval *tv) const =0 |
Convert a time given w.r.t. |
TimeSource interface.
This interfaces describes a way to interact with time sources that can be given to a Clock (for instance for simulation environments).
Definition at line 36 of file timesource.h.
|
inlinevirtual |
Destructor.
Definition at line 40 of file timesource.h.
|
pure virtual |
Convert a time given w.r.t.
this time sources into system time.
tv | the time to convert |
Implemented in fawkes::SimulatorTimeSource.
Referenced by fawkes::Clock::ext_to_realtime().
|
pure virtual |
Get the current time.
tv | the current time is written to this timeval |
Implemented in fawkes::SimulatorTimeSource.
Referenced by fawkes::Clock::get_time().