mach_absolute_time as the primary clock source on macOS (corefx#30391) (#18505)
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)
commita88923778b841a51d9656f714f171115baf7ca80
treebfa77cc2d83c0a22bddacb0e81e0cd672a00f6d9
parent71f4199f7dd043c4901a187b9bd88ab40e2b87e2
mach_absolute_time as the primary clock source on macOS (corefx#30391) (#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.
src/pal/src/misc/time.cpp