9 #define EPICS_EXPOSE_LIBCOM_MONOTONIC_PRIVATE 15 static unsigned char osdUsePrefCounter;
20 LARGE_INTEGER freq, val;
22 if(!QueryPerformanceFrequency(&freq) ||
23 !QueryPerformanceCounter(&val))
25 double period = 1.0/freq.QuadPart;
26 osdMonotonicResolution = period*1e9;
27 osdUsePrefCounter = 1;
29 osdMonotonicResolution = 1e6;
35 return osdMonotonicResolution;
41 if(osdUsePrefCounter) {
42 if(!QueryPerformanceCounter(&val)) {
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 ...
EPICS time-stamps (epicsTimeStamp), epicsTime C++ class and C functions for handling wall-clock times...