|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
10 #ifndef YARP_OS_IMPL_PLATFORMTIME_H
11 #define YARP_OS_IMPL_PLATFORMTIME_H
15 # include <ace/High_Res_Timer.h>
16 # include <ace/OS_NS_sys_time.h>
17 # include <ace/Time_Value.h>
22 # define PLATFORM_TIME_SET(x, y) x.set(y)
24 # include <sys/time.h>
25 # define PLATFORM_TIME_SET(x, y) fromDouble(x, y)
50 #endif // YARP_OS_IMPL_PLATFORMTIME_H
void getTime(YARP_timeval &now)
double now()
Return the current time in seconds, relative to an arbitrary starting point.
void subtractTime(YARP_timeval &val, const YARP_timeval &subtract)
void fromDouble(YARP_timeval &v, double x, int unit=1)
void addTime(YARP_timeval &val, const YARP_timeval &add)
double toDouble(const YARP_timeval &v)
struct timeval YARP_timeval
The main, catch-all namespace for YARP.
void sleepThread(YARP_timeval &sleep_period)