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