Re: More accurate wording for java.util.concurrent.TimeUnit.sleep

Martin Buchholz via Concurrency-interest <[email protected]>
Newsgroups gmane.comp.java.jsr.166-concurrency
Message-ID <CA+kOe09x=K=ZKREUxWRdKgb0gNNi9sZTfknyDzsqtpx4C5kQNQ@mail.gmail.com>
On Fri, Aug 30, 2019 at 6:58 AM Thorsten Goetzke via Concurrency-interest <
[email protected]> wrote:

>
> You may (or should) also use System.nanoTime instead of currentTimeMillis.
>

Yes, over the years we have replaced many calls to  currentTimeMillis
with nanoTime, when interested in elapsed time.

_______________________________________________
Concurrency-interest mailing list
[email protected]
http://cs.oswego.edu/mailman/listinfo/concurrency-interest
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.