-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
b50
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8082849 | emb-9 | Daniel Fuchs | P3 | Resolved | Fixed | team |
The java.time.Clock.system() method (and variants thereof) are specified to "obtain a clock that returns the current instant using best available system clock". However the current implementation of the clock returned is based on System.currentTimeMillis() whereas the underlying native clock used by System.currentTimeMillis() has often a greater precision than milliseconds (for instance, on Linux, System.currentTimeMillis() is based on gettimeofday, which offers microseconds precision).
This RFE propose to enhance the implementation of the system clocks returned by java.time.Clock, so that they offer at least the same precision than the underlying clock available on the system.
This RFE propose to enhance the implementation of the system clocks returned by java.time.Clock, so that they offer at least the same precision than the underlying clock available on the system.
- backported by
-
JDK-8082849 Increase the precision of the implementation of java.time.Clock.systemUTC()
-
- Resolved
-
- relates to
-
JDK-8180428 Clarify implementation note in Clock.java to match implementation changes made by JDK-8068730
-
- Closed
-
-
JDK-8071919 Add java.time.Clock.tickMillis(ZoneId zone) method
-
- Resolved
-
-
JDK-8072645 java.util.logging should use java.time to get more precise time stamps
-
- Closed
-
-
JDK-8242504 Enhance the system clock to nanosecond precision
-
- Resolved
-