8 #include <mach/mach_time.h> 10 #define EPICS_EXPOSE_LIBCOM_MONOTONIC_PRIVATE 17 static mach_timebase_info_data_t tbinfo;
21 (void)mach_timebase_info(&tbinfo);
26 return 1e-9 * tbinfo.numer / tbinfo.denom;
31 uint64_t val = mach_absolute_time();
32 return val * tbinfo.numer / tbinfo.denom;
void osdMonotonicInit(void)
epicsUInt64 epicsMonotonicGet(void)
Fetch monotonic counter, returns the number of nanoseconds since some unspecified time...
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 ...
EPICS time-stamps (epicsTimeStamp), epicsTime C++ class and C functions for handling wall-clock times...