use clock_get_time on apple for timer nanoseconds support