JDK-8161258 : [Win] Timer functionality is broken after JDK-8089563
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Our monotonically increasing time implementation for windows is based on glib's g_get_monotonic_time function which returns time in microseconds. So the windows implementation of g_get_monotonic_time multiplies the ticks in millisecond by 1000 to convert to microseconds.
But WTF::monotonicallyIncreasingTime() needs in seconds, so we need to divide by 1000 as like below.
--- a/modules/web/src/main/native/Source/WTF/wtf/CurrentTime.cpp Fri Jul 08 09:29:37 2016 +1200
+++ b/modules/web/src/main/native/Source/WTF/wtf/CurrentTime.cpp Wed Jul 13 08:01:25 2016 +0100
@@ -321,7 +321,7 @@
ticks -= ticksAs32Bit - ticks32;
- return ticks * 1000;
+ return ticks / 1000.0;
#elif PLATFORM(JAVA) && OS(LINUX)