diff --git a/tools.c b/tools.c index 286f695..bc96684 100644 --- a/tools.c +++ b/tools.c @@ -42,6 +42,11 @@ #include #endif +#ifdef __MACH__ +#define CLOCK_REALTIME 0 +#define CLOCK_MONOTONIC 1 +#endif + #define RES_PRE 8 #define RES_AFTER 8 #define MAX_BLOCKS 1000000