Searched refs:timebase_info (Results 1 – 4 of 4) sorted by relevance
46 static mach_timebase_info_data_t timebase_info; in monotonic_clock_ns() local47 if (timebase_info.denom == 0) mach_timebase_info(&timebase_info); in monotonic_clock_ns()48 return (mach_absolute_time() * timebase_info.numer) / timebase_info.denom; in monotonic_clock_ns()
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()
66 mach_timebase_info_data_t timebase_info; in GetWallTimeNs() local67 mach_timebase_info(&timebase_info); in GetWallTimeNs()68 return timebase_info.numer / timebase_info.denom; in GetWallTimeNs()
527 static mach_timebase_info_data_t timebase_info; in MonotonicNanoTime() local528 if (timebase_info.denom == 0) mach_timebase_info(&timebase_info); in MonotonicNanoTime()529 return (mach_absolute_time() * timebase_info.numer) / timebase_info.denom; in MonotonicNanoTime()