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

Add a high-resolution timer to the API

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.4.0_01, 1.4.2, 5.0
    • Fix Version/s: 5.0
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic, unknown, x86, sparc
    • OS:
      generic, solaris_8, windows_98

      Description

      Many modern operating systems support two kinds of timers, a "regular" low resolution one with a maximal tolerance in 10s to 100s of MS and a "high resolution" timer with a much finer resolution. (In windows this is called the "multi-media timer" and is aprt of the Windows multi-media extensions.) This high-resolution timer is essential for game and multi-media apps where fine timing is often essential and is oen of the most requested new Java features among game developers.

      The API would most likely look like our current Timer API but have a higher resolution. Additionally there would be a call to determine the actual resolution of the high-res timer on the given VM/host platform combination.

      The importance of this feature cannot be over-stated. The 99% pure Java game Roboforge would have been 100% pure but at the end they had to put in native code to talk to the high-res timer themselves.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjb Josh Bloch
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: