5062023fb6c8a0eff9300d8dc9c06396a3b8f4e3
1 /* -----------------------------------------------------------------------------
3 * (c) The GHC Team, 2012
5 * Posix monotonic clock
7 * ---------------------------------------------------------------------------*/
20 #ifdef HAVE_SYS_TIME_H
21 # include <sys/time.h>
24 #ifdef HAVE_CLOCK_GETTIME
25 # ifdef _POSIX_MONOTONIC_CLOCK
26 # define CLOCK_ID CLOCK_MONOTONIC
28 # define CLOCK_ID CLOCK_REALTIME
32 #endif /* POSIX_CLOCK_H */