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;
virtual timeval conv_to_realtime(const timeval *tv) const
Convert a time given w.r.t.
virtual void get_time(timeval *tv) const
Get the current time.
Fawkes library namespace.
SimulatorTimeSource()
Constructor.
This is supposed to be the central clock in Fawkes.
void set_start(float initial_offset)
Set start time.
A class for handling time.
virtual ~SimulatorTimeSource()
Destructor.
void set_sim_offset(float sim_offset)
Set simulation offset.
virtual timeval conv_native_to_exttime(const timeval *tv) const
Convert a native time to the external time.