libcm/osx/clock_gettime_stub.h

15 rindas
199 B
C

2012-10-30 03:52:39 +00:00
#ifdef OS_OSX
typedef enum {
CLOCK_REALTIME,
CLOCK_MONOTONIC,
CLOCK_PROCESS_CPUTIME_ID,
CLOCK_THREAD_CPUTIME_ID
} clockid_t;
int clock_gettime(clockid_t clk_id, struct timespec *tp);
#endif