|
|
|
@@ -25,7 +25,18 @@ |
|
|
|
|
|
|
|
extern void jack_init_time (); |
|
|
|
|
|
|
|
#if defined(linux) |
|
|
|
#if defined(__APPLE__) && defined(__POWERPC__) |
|
|
|
|
|
|
|
#include <mach/mach_time.h> |
|
|
|
|
|
|
|
extern double __jack_time_ratio; |
|
|
|
|
|
|
|
static inline jack_time_t jack_get_microseconds(void) |
|
|
|
{ |
|
|
|
return mach_absolute_time () * __jack_time_ratio; |
|
|
|
} |
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
#include <jack/cycles.h> |
|
|
|
|
|
|
|
@@ -37,18 +48,6 @@ static inline jack_time_t jack_get_microseconds (void) { |
|
|
|
return get_cycles() / __jack_cpu_mhz; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#elif defined(__APPLE__) && defined(__POWERPC__) |
|
|
|
|
|
|
|
#include <mach/mach_time.h> |
|
|
|
|
|
|
|
extern double __jack_time_ratio; |
|
|
|
|
|
|
|
static inline jack_time_t jack_get_microseconds(void) |
|
|
|
{ |
|
|
|
return mach_absolute_time () * __jack_time_ratio; |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
#endif /* __jack_time_h__ */ |