7 #define EPICS_EXPOSE_LIBCOM_MONOTONIC_PRIVATE 13 static clockid_t osdMonotonicID;
23 #ifdef CLOCK_MONOTONIC 33 int ret = clock_getres(ids[i], &ts);
41 ret = clock_gettime(ids[i], &ts);
44 osdMonotonicID = ids[
i];
45 osdMonotonicResolution = res;
54 return osdMonotonicResolution;
60 int ret = clock_gettime(osdMonotonicID, &ts);
62 errlogPrintf(
"Warning: failed to fetch monotonic time %d %d\n",
63 (
int)osdMonotonicID, ret);
void osdMonotonicInit(void)
epicsUInt64 epicsMonotonicGet(void)
Fetch monotonic counter, returns the number of nanoseconds since some unspecified time...
#define errMessage(S, PM)
Miscellaneous macro definitions.
unsigned long long epicsUInt64
epicsUInt64 epicsMonotonicResolution(void)
Monotonic time resolution, may not be accurate. Returns the minimum non-zero time difference between ...
int errlogPrintf(const char *pFormat,...)
Defined by POSIX Real Time.
EPICS time-stamps (epicsTimeStamp), epicsTime C++ class and C functions for handling wall-clock times...