|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_OS_TIME_H
11 #define YARP_OS_TIME_H
133 #ifndef YARP_NO_DEPRECATED // Since YARP 3.0.0
151 #endif // YARP_OS_TIME_H
yarp::rosmsg::std_msgs::Time Time
@ YARP_CLOCK_UNINITIALIZED
bool isValid()
Check if time is valid (non-zero).
#define YARP_DEPRECATED
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
bool isCustomClock()
Check if YARP is using a user-defined custom time.
double now()
Return the current time in seconds, relative to an arbitrary starting point.
void useSystemClock()
Configure YARP to use system time (this is the default).
yarpClockType getClockType()
void yield()
The calling thread releases its remaining quantum upon calling this function.
void turboBoost()
For OS where it makes sense sets the scheduler to be called more often.
void useNetworkClock(const std::string &clock, const std::string &localPortName="")
Configure YARP to read time from a specified topic.
The main, catch-all namespace for YARP.
bool isSystemClock()
Check if YARP is providing system time.
std::string clockTypeToString(yarpClockType type)
Converts clock type enum into string.
bool isClockInitialized()
Check if YARP clock is initialized.
void useCustomClock(Clock *clock)
Configure YARP clients to use a custom clock source provided by the user.
void delay(double seconds)
Wait for a certain number of seconds.
bool isNetworkClock()
Check if YARP is providing network time.