Clock.hh
Go to the documentation of this file.
virtual bool IsReady() const =0
Checks whether the clock is ready to be used or not.
A Clock interface implementation that uses ignition::msgs::Clock messages distributed across the netw...
Definition: Clock.hh:57
NetworkClock(const std::string &_topicName, const TimeBase _timeBase=TimeBase::SIM)
Constructor that sets the initial time range option.
void SetTime(const std::chrono::nanoseconds _time)
Sets and distributes the given clock time.
bool IsReady() const override
Checks whether the clock is ready to be used or not.
std::chrono::nanoseconds Time() const override
Gets clock time.
A Clock implementation that leverages host OS time APIs.
Definition: Clock.hh:100
static WallClock * Instance()
Returns system wall clock interface.
bool IsReady() const override
Checks whether the clock is ready to be used or not.
Definition: AdvertiseOptions.hh:29