12 #include <sys/timeb.h> 18 # include <sys/time.h> 39 *date_ = *localtime(&tin);
57 gettimeofday(&tv, NULL);
58 tp.tv_sec = tv.tv_sec;
59 tp.tv_nsec = tv.tv_usec*1000;
62 clock_gettime(CLOCK_REALTIME, &tp);
66 localtime_r(&tp.tv_sec,date_);
83 clock_t
end = clock() + (CLOCKS_PER_SEC/1000) * ms;
86 while ((diff =
end - clock()) > 0)
88 diff = (1000 * diff) / CLOCKS_PER_SEC;
#define XSENS_SEC_PER_DAY
The number of seconds in a normal day.
TimeStamp timeStampNow(void)
uint32_t getTimeOfDay(tm *date_, time_t *secs_)
A platform-independent clock.
void msleep(uint32_t ms)
A platform-independent sleep routine.
void BASE_IMPEXP sleep(int time_ms) MRPT_NO_THROWS
An OS-independent method for sending the current thread to "sleep" for a given period of time...
uint64_t TimeStamp
A real-time timestamp (ms)
The namespace of all Xsens software since 2006.
unsigned __int32 uint32_t