You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use nanoTime instead of currentTimeMillis for elapsed time
System/currentTimeMillis is not guaranteed to progress monotonically.
NTP shifts, leap seconds, and manual system time changes can all cause
elapsed time calculations to be incorrect if you use
currentTimeMillis.
nanoTime is always calculated against a fixed point and proceeds
monotonically.
https://go.googlesource.com/proposal/+/master/design/12914-monotonic.md
has a good discussion on monotonic time.
Closes: clj-commons#21
0 commit comments