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

System.nanoTime() is slow and non-monotonic on OS X

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • P2
    • Resolution: Fixed
    • 7u80, 9
    • 9
    • hotspot
    • b13
    • os_x
    • Not verified

    Backports

      Description

        The current implementation of System.nanoTime() on OS X uses gettimeofday() which has only microsecond precision and no guarantees on being monotonic.

        Attachments

          Issue Links

            Activity

              People

                sla Staffan Larsen (Inactive)
                sla Staffan Larsen (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: