Skip to content

Conversation

@obastemur
Copy link
Collaborator

Recent OSX distros have clock_gettime support. Use it when it's available (~3 times faster to what we do to replace that)

Recent OSX distros have clock_gettime support. Use it when it's available (~3 times faster to what we do to replace that)
@obastemur obastemur requested a review from MSLaguana January 23, 2018 21:53
inline static double GetSystemTimeREAL()
{
#ifndef __APPLE__
#ifdef HAVE_WORKING_CLOCK_GETTIME
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does this macro get defined?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

During pre-build by configure.cmake. It tests the feature on the system and then enables / disables for the build

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@MSLaguana MSLaguana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I think this should target release/1.9 rather than 1.8

@obastemur
Copy link
Collaborator Author

It targets r1.8 due to timeouts on CI (slow running tests)

@obastemur
Copy link
Collaborator Author

@dilijev @MSLaguana Thanks for the review!

@chakrabot chakrabot merged commit 1b90e95 into chakra-core:release/1.8 Jan 23, 2018
chakrabot pushed a commit that referenced this pull request Jan 23, 2018
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)
chakrabot pushed a commit that referenced this pull request Jan 24, 2018
…vailable

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)
chakrabot pushed a commit that referenced this pull request Jan 24, 2018
…e 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants