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

Getting more precise timing on Linux #292

Open
edwardalee opened this issue Mar 22, 2021 · 3 comments
Open

Getting more precise timing on Linux #292

edwardalee opened this issue Mar 22, 2021 · 3 comments
Labels
enhancement Enhancement of existing feature linux Related to the Linux platform runtime Related to the runtime implementation to do

Comments

@edwardalee
Copy link
Collaborator

This is not a high priority, but Linux offers the ability for a thread to sleep until an absolute time via the clock_nanosleep() system call. With the TIMER_ABSTIME flag, an absolutely timed sleep is possible. This is rather like the PRET "deadline" instruction and could lead to significantly more precise timing on Linux.

@edwardalee edwardalee added enhancement Enhancement of existing feature to do linux Related to the Linux platform runtime Related to the runtime implementation labels Mar 22, 2021
@Soroosh129
Copy link
Contributor

I want to point out that this is currently implemented in the platform-abstraction branch here.

@edwardalee
Copy link
Collaborator Author

Ah, I had forgotten about the platform-abstraction branch! That implementation, doesn't quite do what I had in mind. The goal is explained nicely in this blog by Björn Brandenburg. I think we would need to abstract the wait at a somewhat higher level.

@lhstrh
Copy link
Member

lhstrh commented Apr 6, 2021

Duplicate of #220?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement of existing feature linux Related to the Linux platform runtime Related to the runtime implementation to do
Projects
None yet
Development

No branches or pull requests

3 participants