15#if defined (__APPLE__) && __clang_major__ < 12
17#include <mach/mach_time.h>
19long clock_gettime (
unsigned int ,
struct timespec *tp)
22 mach_timebase_info_data_t
info;
23 kern_return_t
err = mach_timebase_info( &info );
27 uint64_t mach_time = mach_absolute_time( );
31 tp->tv_nsec =
time - (
tp->tv_sec * 1e9);
Provide simplified clock_gettime() function for MacOSX.
time(flags, cells_name, *args, **kw)