https://issues.apache.org/bugzilla/show_bug.cgi?id=52333

--- Comment #1 from Sebb <[email protected]> 2011-12-14 19:55:00 UTC ---
Note: it looks like Thread.sleep() returns to the thread shortly after a clock
transition (as might be expected).

Calculating the nanoTime offset immediately afterwards should ensure more
consistent values.

With the current implementation - which may call currentTimeMills at any point
in the clock cycle - the granularity of currentTimeMillis (generally 10ms-15ms)
means that the offset can vary by that amount.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to