Searched refs:timebase_info (Results 1 – 2 of 2) sorted by relevance
232 static mach_timebase_info_data_t timebase_info = {};235 kern_return_t err = mach_timebase_info(&timebase_info);243 if (timebase_info.numer == timebase_info.denom)250 return (m_ticks * timebase_info.numer) / (INT64_C(1000000) * timebase_info.denom);
2909 mach_timebase_info_data_t timebase_info; in g_get_monotonic_time() local2913 mach_timebase_info (&timebase_info); in g_get_monotonic_time()2916 if (timebase_info.numer != timebase_info.denom) in g_get_monotonic_time()2919 val = ((__uint128_t) val * (__uint128_t) timebase_info.numer) / timebase_info.denom / 1000; in g_get_monotonic_time()2926 t_low = (val & 0xffffffffLL) * (guint64) timebase_info.numer; in g_get_monotonic_time()2927 t_high = (val >> 32) * (guint64) timebase_info.numer; in g_get_monotonic_time()2929 result_high = t_high / (guint64) timebase_info.denom; in g_get_monotonic_time()2930 result_low = (((t_high % (guint64) timebase_info.denom) << 32) + in g_get_monotonic_time()2932 (guint64) timebase_info.denom; in g_get_monotonic_time()