Merge pull request #8357 from SparkiDev/entropy_memuse_apple_timer

Entropy Apple: change time function called
This commit is contained in:
David Garske
2025-01-20 07:58:14 -08:00
committed by GitHub

View File

@@ -818,7 +818,7 @@ static WC_INLINE word64 Entropy_TimeHiRes(void)
*/
static WC_INLINE word64 Entropy_TimeHiRes(void)
{
return mach_absolute_time();
return clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW);
}
#elif !defined(ENTROPY_MEMUSE_THREAD) && defined(__aarch64__)
/* Get the high resolution time counter.