Implemented clock_gettime_nsec_np in libraries for Apple Silicon support (#43343)
authorJeremy Sinclair <4016293+snickler@users.noreply.github.com>
Wed, 14 Oct 2020 21:22:37 +0000 (17:22 -0400)
committerGitHub <noreply@github.com>
Wed, 14 Oct 2020 21:22:37 +0000 (14:22 -0700)
commitd67cc2cceb4dc8ecd15f5b6663d93f79de3954fd
treee1753a4d3d8fe919085b86d7c0894d9851f4ce37
parent035b729d829368c2790d825bd02db14f0c0fd2ea
Implemented clock_gettime_nsec_np in libraries for Apple Silicon support (#43343)

* Replaced mach_absolute_time instances with clock_gettime_nsec_np

* Removed GetTimestampResolution method and replaced with 10^9
src/libraries/Common/src/Interop/Unix/System.Native/Interop.GetTimestamp.cs
src/libraries/Native/Unix/Common/pal_config.h.in
src/libraries/Native/Unix/System.Native/pal_time.c
src/libraries/Native/Unix/System.Native/pal_time.h
src/libraries/Native/Unix/configure.cmake
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Stopwatch.Unix.cs