On Thu, Oct 8, 2015 at 11:51 PM, Jaroslav Bachorik < jaroslav.bacho...@oracle.com> wrote:
> On 8.10.2015 18:56, Martin Buchholz wrote: > >> >> I think it would be better : >> - never use currentTimeMillis to measure elapsed time; use nanoTime >> instead >> > > Ok. I suppose this would be because currentTimeMillis() is dependent on > the OS time, right? nanoTime only has one job - to measure elapsed time. currentTimeMillis returns wall clock time, which is subject to the whims of the system administrator or your local NTP server.