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

[2.1] Process::clock_gettime and clock_getres #1056

Closed
headius opened this issue Oct 1, 2013 · 2 comments
Closed

[2.1] Process::clock_gettime and clock_getres #1056

headius opened this issue Oct 1, 2013 · 2 comments
Assignees

Comments

@headius
Copy link
Member

headius commented Oct 1, 2013

See https://bugs.ruby-lang.org/issues/8658

2.1 will add an unofficial API to get OS-level clock values like CLOCK_MONOTONIC and gettimeofday. I have commented on the bug about what these are on JVM and how we should probably proceed.

Note that in the developer meeting transcript linked from the above issue, matz says this is not considered "spec" and other implementations do not need to implement it...but I'm sure we'll have to anyway since there's no alternative.

@headius
Copy link
Member Author

headius commented Oct 1, 2013

Partial impl committed. If we use native calls we could cover more clock types, but REALTIME and MONOTONIC probably cover 90% of uses. Leaving open to decide if we want to go deeper.

@headius
Copy link
Member Author

headius commented Nov 12, 2014

We'll go deeper when someone requests deeper. This is working for 99% cases now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant