10 #ifndef YARP_OS_TIME_H 11 #define YARP_OS_TIME_H 128 #ifndef YARP_NO_DEPRECATED // Since YARP 3.0.0 146 #endif // YARP_OS_TIME_H
bool isNetworkClock()
Check if YARP is providing network time.
void useSystemClock()
Configure YARP to use system time (this is the default).
The main, catch-all namespace for YARP.
bool isCustomClock()
Check if YARP is using a user-defined custom time.
void yield()
The calling thread releases its remaining quantum upon calling this function.
#define YARP_DEPRECATED
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
double now()
Return the current time in seconds, relative to an arbitrary starting point.
void useNetworkClock(const std::string &clock, std::string localPortName="")
Configure YARP to read time from a specified topic.
yarp::rosmsg::std_msgs::Time Time
void turboBoost()
For OS where it makes sense sets the scheduler to be called more often.
yarpClockType getClockType()
std::string clockTypeToString(yarpClockType type)
Converts clock type enum into string.
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 isSystemClock()
Check if YARP is providing system time.
bool isValid()
Check if time is valid (non-zero).