JDK-4478186 : Add a high-resolution timer to the API
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.util
  • Affected Version: 1.4.0_01,1.4.2,5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,solaris_8,windows_98
  • CPU: generic,unknown,x86,sparc
  • Submitted: 2001-07-10
  • Updated: 2003-10-25
  • Resolved: 2003-10-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 betaFixed
Related Reports
Duplicate :  
Relates :  
Relates :  
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.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: tiger-beta INTEGRATED IN: tiger-beta
14-06-2004

SUGGESTED FIX Consider making the timer in com.sun.j3d.util (Java3D) public and a part of core. ###@###.### 2002-06-11
11-06-2002

EVALUATION Seems like a reasonable enough request. joshua.bloch@Eng 2001-07-11 This RFE has been addressed in the context of JSR-166 (java.util.concurrent). Use java.lang.System.nanoTime ###@###.### 2003-10-24
11-07-2001