24 #ifndef _UTILS_TIME_SIMTS_H_
25 #define _UTILS_TIME_SIMTS_H_
27 #include <utils/time/clock.h>
28 #include <utils/time/timesource.h>
38 virtual void get_time(timeval *tv)
const;
49 Time current_realtime;
50 float start_simoffset;
51 float current_simoffset;
This is supposed to be the central clock in Fawkes.
void set_start(float initial_offset)
Set start time.
virtual timeval conv_to_realtime(const timeval *tv) const
Convert a time given w.r.t.
virtual timeval conv_native_to_exttime(const timeval *tv) const
Convert a native time to the external time.
void set_sim_offset(float sim_offset)
Set simulation offset.
SimulatorTimeSource()
Constructor.
virtual void get_time(timeval *tv) const
Get the current time.
virtual ~SimulatorTimeSource()
Destructor.
A class for handling time.
Fawkes library namespace.