[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 )

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

              Created:
              Updated: