--- old/modules/web/src/main/native/Source/WTF/wtf/CurrentTime.cpp 2016-05-23 16:25:12.205934586 +0530 +++ new/modules/web/src/main/native/Source/WTF/wtf/CurrentTime.cpp 2016-05-23 16:25:11.866104573 +0530 @@ -67,6 +67,20 @@ namespace WTF { +#if PLATFORM(JAVA) && OS(LINUX) + +static const double hundredsOfNSecPerMillisecond = 10000; + +double clockTimeNow() +{ + auto now = std::chrono::steady_clock::now(); + return static_cast(std::chrono::duration_cast( + now.time_since_epoch()).count()) / + static_cast(hundredsOfNSecPerMillisecond); +} + +#endif + #if OS(WINDOWS) // Number of 100 nanosecond between January 1, 1601 and January 1, 1970. @@ -312,12 +326,7 @@ double monotonicallyIncreasingTime() { - static double lastTime = 0; - double currentTimeNow = currentTime(); - if (currentTimeNow < lastTime) - return lastTime; - lastTime = currentTimeNow; - return currentTimeNow; + return clockTimeNow(); } #endif