2 ms·
So there's a performance bug in Java's currentTimeMillis() implementation on Linux, where it uses gettimeofday() instead of clock_gettime() with a coarse timer
by loeg 9y ago
So there's a performance bug in Java's currentTimeMillis() implementation on Linux, where it uses gettimeofday() instead of clock_gettime() with a coarse timer (even the TSC method is ~3x slower or worse than the coarse timer, which has sufficient precision for currentTimeMillis()). Is there a bug filed for this? It seems to warrant one.
- dbdr 9y agohttp://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8185891 http://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8185...