/*************************************************************************\ * Copyright (c) 2015 Michael Davidsaver * SPDX-License-Identifier: EPICS * EPICS BASE is distributed subject to a Software License Agreement found * in file LICENSE that is included with this distribution. \*************************************************************************/ #define EPICS_EXPOSE_LIBCOM_MONOTONIC_PRIVATE #include "dbDefs.h" #include "errlog.h" #include "epicsTime.h" #include "generalTimeSup.h" static clockid_t osdMonotonicID; static epicsUInt64 osdMonotonicResolution; void osdMonotonicInit(void) { unsigned i; clockid_t ids[] = { #ifdef CLOCK_HIGHRES CLOCK_HIGHRES, /* solaris specific */ #endif #ifdef CLOCK_MONOTONIC CLOCK_MONOTONIC, /* Linux, RTEMS, and probably others */ #endif /* fallback and vxWorks, not actually monotonic, but always available */ CLOCK_REALTIME }; for(i=0; i