[concurrency-interest] Timeunit.convertMillies()

Kasper Nielsen news@kav.dk
Thu, 11 Sep 2003 12:47:58 +0200

David Holmes wrote:
> Kasper Nielsen wrote:
>>I find myself writing a lot of
>>unit.convert(time, TimeUnit.MILLISECONDS)
>>in all my calls to sleep and wait, would be much nicer with just
> Why not use the TimeUnit sleep and timedwait methods rather than
> converting?
> David Holmes
> _______________________________________________
> Concurrency-interest mailing list
> Concurrency-interest@altair.cs.oswego.edu
> http://altair.cs.oswego.edu/mailman/listinfo/concurrency-interest

You are absolutely right! Iím not using the pre-released version of 
jsr166 I had just copied what I thought was all the methods into my own 
little TimeUnit class that I could later easily replace with whatís in 
But thanks for the hint.

- Kasper