New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use CLOCK_MONOTONIC_RAW #13

Merged
merged 1 commit into from Dec 27, 2015

Conversation

Projects
None yet
2 participants
@vstinner
Contributor

vstinner commented Oct 13, 2015

CLOCK_MONOTONIC_RAW doesn't fit into time.monotonic() requirements:
it doesn't use seconds. CLOCK_MONOTONIC is what uses expect for a
monotonic clock using seconds.

For the longer rationale, see the PEP 418:
https://www.python.org/dev/peps/pep-0418/#clock-monotonic-clock-monotonic-raw-clock-boottime

Don't use CLOCK_MONOTONIC_RAW
CLOCK_MONOTONIC_RAW doesn't fit into time.monotonic() requirements:
it doesn't use seconds. CLOCK_MONOTONIC is what uses expect for a
monotonic clock using seconds.

For the longer rationale, see the PEP 418:
https://www.python.org/dev/peps/pep-0418/#clock-monotonic-clock-monotonic-raw-clock-boottime

atdt added a commit that referenced this pull request Dec 27, 2015

Merge pull request #13 from haypo/no_raw
Don't use CLOCK_MONOTONIC_RAW

@atdt atdt merged commit a29eb94 into atdt:master Dec 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment