Monthly Archives: November 2013

Clocks are not monotonic in Java

It turns out neither System.getCurrentTimeMillis() nor System.nanoTime() guarantee monotonic clock behaviour.

Refer to http://stackoverflow.com/questions/2978598/will-sytem-currenttimemillis-always-return-a-value-previous-calls

Advertisements