Fix clock_gettime() on OSX
This commit is contained in:
@@ -6,6 +6,13 @@
|
||||
#ifndef _TIMER_H
|
||||
#define _TIMER_H
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#include <sys/time.h>
|
||||
#include <mach/clock.h>
|
||||
#include <mach/mach.h>
|
||||
#include <mach/mach_time.h>
|
||||
#endif
|
||||
|
||||
void hc_timer_set (hc_timer_t *a);
|
||||
double hc_timer_get (hc_timer_t a);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user