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

WIP raw clock #315

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

WIP raw clock #315

wants to merge 1 commit into from

Conversation

Ealdwulf
Copy link
Contributor

@Ealdwulf Ealdwulf commented Apr 3, 2018

This PR changes monitor.py to using raw clock to avoid premature timeout when the network comes up and sets the wall clock time.

Not tested yet.

timeout when the network comes up and sets the wall clock time.
class raw_clock:
CLOCK_MONOTONIC_RAW = 4 # see <linux/time.h>
def __init__(self):
self.librt = ctypes.CDLL('librt.so.1', use_errno=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Confirmed it's the same libname on debian stretch, could perhaps be useful to have it as a default parameter, as in init(libname) or so.

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.

2 participants