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;
48 Time current_realtime;
49 float start_simoffset;
50 float current_simoffset;
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.
virtual void get_time(timeval *tv) const
Get the current time.
virtual timeval conv_to_realtime(const timeval *tv) const
Convert a time given w.r.t.
void set_sim_offset(float sim_offset)
Set simulation offset.