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

Use monotic time for elapsed time calculation #72

Closed
fhunleth opened this issue Aug 23, 2017 · 0 comments
Closed

Use monotic time for elapsed time calculation #72

fhunleth opened this issue Aug 23, 2017 · 0 comments

Comments

@fhunleth
Copy link
Collaborator

The elapsed time calculation uses gettimeofday which is not monotonic. On devices that take a while to update their clocks, the jump from 1970 to the current date has actually happened during a firmware update and confused people.

fhunleth added a commit that referenced this issue Sep 25, 2017
fhunleth added a commit that referenced this issue Sep 25, 2017
This fixes #72. Monotonic time isn't available on all platforms, but the
most important cases are the embedded Linux ones w/o real-time clocks.
Those seem to get their clocks updated in the middle of firmware
updates.
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

No branches or pull requests

1 participant