/* ----------------------------------------------------------------------------- * * (c) The GHC Team, 2012 * * Posix monotonic clock * * ---------------------------------------------------------------------------*/ #pragma once #if defined(HAVE_UNISTD_H) # include #endif #if defined(HAVE_TIME_H) # include #endif #if defined(HAVE_SYS_TIME_H) # include #endif #if defined(HAVE_CLOCK_GETTIME) # if defined(_POSIX_MONOTONIC_CLOCK) # define CLOCK_ID CLOCK_MONOTONIC # else # define CLOCK_ID CLOCK_REALTIME # endif #elif defined(darwin_HOST_OS) # include # include #endif