Skip to content
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

cli: If attribute CLOCK_BOOTTIME doesn't exist fall back #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

e4t
Copy link

@e4t e4t commented Sep 8, 2022

time.CLOCK_BOOTTIME has only been introduced to the time module with Python 3.7. To support older versions, provide a fallback to time.CLOCK_MONOTONIC.

Fixes #10

Signed-off-by: Egbert Eich eich@suse.com

time.CLOCK_BOOTTIME has only been introduced to the `time` module
with Python 3.7. To support older versions, provide a fallback to
time.CLOCK_MONOTONIC.

Fixes jeffmahoney#10

Signed-off-by: Egbert Eich <eich@suse.com>
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.

time.CLOCK_BOOTTIME not available on older versions of Python
1 participant