Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-1509

as a developer I'd like to have nanosecond precision for test duration

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      In reports lots of tests have duration = 0. This is because unit tests are fast and the System.currentTimeMillis() is used to record start and end time of a test. Which is not precise by design.

      We could increase precision to nanoseconds using System.nanoTime().

      Note: we'd still need to call System.currentTimeMillis() to record datetime when test was run.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mparfianowicz Marek Parfianowicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: