Skip to content

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

Open
e4t wants to merge 1 commit intojeffmahoney:mainfrom
e4t:main
Open

cli: If attribute CLOCK_BOOTTIME doesn't exist fall back#11
e4t wants to merge 1 commit intojeffmahoney:mainfrom
e4t:main

Conversation

@e4t
Copy link
Copy Markdown

@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 [email protected]

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 <[email protected]>
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