[concurrency-interest] Re: SynchronizedLong vs. other locks

Tim Peierls tim at peierls.net
Fri Jul 8 10:49:22 EDT 2005


Tim Peierls wrote:
> Answering my own question: No, it doesn't. The program below produces 
> this output on my machine (today):
> 
> t1 = 1120881600000
> t2 = 1120867200000
> 
> a difference of 4 minutes. (Hmm, why four minutes? Only 23 leap seconds 
> have been inserted since the epoch.)

Ah, four *hours*! That's the time zone difference. Sorry.

But can one always count on System.currentTimeMillis() in this way?

--tim



More information about the Concurrency-interest mailing list