A mini-server for performing network communication in the background.
yarpClockType getClockType()
bool isNetworkClock()
Check if YARP is providing network time.
void useSystemClock()
Configure YARP to use system time (this is the default).
bool isClockInitialized()
Check if YARP clock is initialized.
bool isValid()
Check if time is valid (non-zero).
void yield()
The calling thread releases its remaining quantum upon calling this function.
double now()
Return the current time in seconds, relative to an arbitrary starting point.
void useNetworkClock(const std::string &clock, const std::string &localPortName="")
Configure YARP to read time from a specified topic.
void delay(double seconds)
Wait for a certain number of seconds.
void useCustomClock(Clock *clock)
Configure YARP clients to use a custom clock source provided by the user.
bool isCustomClock()
Check if YARP is using a user-defined custom time.
bool isSystemClock()
Check if YARP is providing system time.
std::string clockTypeToString(yarpClockType type)
Converts clock type enum into string.
An interface to the operating system, including Port based communication.
@ YARP_CLOCK_UNINITIALIZED