mach_absolute_time as the primary clock source on macOS (corefxdotnet/coreclr#30391...
authorAndrey Akinshin <andrey.akinshin@gmail.com>
Mon, 18 Jun 2018 17:11:32 +0000 (13:11 -0400)
committerStephen Toub <stoub@microsoft.com>
Mon, 18 Jun 2018 17:11:32 +0000 (13:11 -0400)
commitc98a8876cd2070d8789443f853f11a3ba45c794f
treea1f79326fb995060739338f9d3727ce4209b8da3
parentc4cffd280cb30afd564b23b0aef0e4f4459be755
mach_absolute_time as the primary clock source on macOS (corefxdotnet/coreclr#30391) (dotnet/coreclr#18505)

macOS 10.12+ supports clock_gettime (HAVE_CLOCK_MONOTONIC is defined)
However, mach_absolute_time has better resolution and should be used
as the primary clock source.

Commit migrated from https://github.com/dotnet/coreclr/commit/a88923778b841a51d9656f714f171115baf7ca80
src/coreclr/src/pal/src/misc/time.cpp