HashedWheelTimer and changing system time

Evgeniy Devyatyh devyatyh at gmail.com
Fri Jun 25 03:11:55 EDT 2010



christian wrote:
> 
> Hi John,
> 
> thanks, it was interesting to read about monotonic timers.
> What I've understood is that in java System.nanoTime is supposed to
> use such a monotonic timer (i.e. shouldn't be affected by time
> changes), but the timer used is broken in some Windows versions.
> 
> I guess it is up to Trustin what do implement: Support best
> correctness on most platforms (i.e. stay with currentTimeMillis) or
> support a (IMO) not so common/frequently happening use case (i.e. use
> nanoTime and not be affected by changing system time)
> 
> 

IMO best correctness on most platform it`s nanoTime (some Windows versions,
some processors (only AMD?)), because currentTimeMillis affected by time
changes on all platforms.
-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/HashedWheelTimer-and-changing-system-time-tp5216326p5220953.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list