libcm/osx/clock_gettime_stub.h
2012-10-29 20:52:39 -07:00

15 řádky
199 B
C

#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