Searched refs:timebase_info (Results 1 – 3 of 3) 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()
44 static mach_timebase_info_data_t timebase_info; in ComputeCurrentTicks()45 if (timebase_info.denom == 0) { in ComputeCurrentTicks()51 kern_return_t kr = mach_timebase_info(&timebase_info); in ComputeCurrentTicks()63 result *= timebase_info.numer; in ComputeCurrentTicks()64 result /= timebase_info.denom; in ComputeCurrentTicks()
265 mach_timebase_info_data_t timebase_info; in InitializeSystemInfo()266 mach_timebase_info(&timebase_info); in InitializeSystemInfo()268 static_cast<double>(timebase_info.denom) / in InitializeSystemInfo()269 static_cast<double>(timebase_info.numer); in InitializeSystemInfo()