Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8336333

[TestBug] Use System.nanoTime for time measurements

XMLWordPrintable

    • Fix Understood

      We should not be using System.currentTimeMillis() for measuring elapsed time, because the results might be affected by the system time synchronization.
      Instead, we should be using System.nanoTime().

      (Came out of a discussion in https://github.com/openjdk/jfx/pull/1394)

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: