Skip to content
This repository was archived by the owner on Oct 15, 2020. It is now read-only.

Commit 762da23

Browse files
obastemurchakrabot
authored andcommitted
deps: update ChakraCore to chakra-core/ChakraCore@3f2f8a7d1c
[1.8>1.9] [MERGE #4593 @obastemur] osx: use clock_gettime when it's available Merge pull request #4593 from obastemur:use_clock_gettime_osx Recent OSX distros have clock_gettime support. Use it when it's available (~3 times faster to what we do to replace that) Reviewed-By: chakrabot <chakrabot@users.noreply.github.com>
1 parent 38bea7b commit 762da23

File tree

1 file changed

+1
-1
lines changed
  • deps/chakrashim/core/lib/Runtime/PlatformAgnostic/Platform/Common

1 file changed

+1
-1
lines changed

deps/chakrashim/core/lib/Runtime/PlatformAgnostic/Platform/Common/HiResTimer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace DateTime
1515
// This method is expected to return UTC time (See MSDN GetSystemTime)
1616
inline static double GetSystemTimeREAL()
1717
{
18-
#ifndef __APPLE__
18+
#ifdef HAVE_WORKING_CLOCK_GETTIME
1919
struct timespec fast_time;
2020
// method below returns UTC time. So, nothing else is needed
2121
// we use clock_gettime first due to expectation of better accuracy

0 commit comments

Comments
 (0)