gz/transport/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 gz::msgs::Clock messages distributed across the network.
Definition: gz/transport/Clock.hh:55
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.
TimeBase
Network clock time bases.
Definition: gz/transport/Clock.hh:58
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: gz/transport/Clock.hh:98
static WallClock * Instance()
Returns system wall clock interface.
bool IsReady() const override
Checks whether the clock is ready to be used or not.
Definition: gz/transport/AdvertiseOptions.hh:29