[2.1] Process::clock_gettime and clock_getres #1056

headius opened this Issue Oct 1, 2013 · 2 comments


None yet
1 participant

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 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 commented Nov 12, 2014

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

@headius headius closed this Nov 12, 2014

@headius headius self-assigned this Nov 12, 2014

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