Searched refs:timebase_info (Results 1 – 2 of 2) sorted by relevance
59 static mach_timebase_info_data_t timebase_info; in monotonic_clock_ns() local60 if (timebase_info.denom == 0) mach_timebase_info(&timebase_info); in monotonic_clock_ns()61 return (mach_absolute_time() * timebase_info.numer) / timebase_info.denom; in monotonic_clock_ns()
65 mach_timebase_info_data_t timebase_info; in GetWallTimeNs() local66 mach_timebase_info(&timebase_info); in GetWallTimeNs()67 return timebase_info.numer / timebase_info.denom; in GetWallTimeNs()