javax.media.ding3d.utils.timer
Class Ding3dTimer

java.lang.Object
  extended by javax.media.ding3d.utils.timer.Ding3dTimer

Deprecated. Use java.lang.System.nanoTime() instead.

public class Ding3dTimer
extends java.lang.Object

A High Resolution interval timer. The timer resolution is operating system dependent and can be queried using getTimerResolution(). These methods are not reentrant and should not be called concurrently from multiple threads.


Method Summary
static long getResolution()
          Deprecated. Get the nanosecond resolution of the timer
static long getValue()
          Deprecated. Get the timer value, in nanoseconds.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getValue

public static long getValue()
Deprecated. 
Get the timer value, in nanoseconds. The initial value of the timer is OS dependent.

Returns:
The current timer value in nanoseconds.

getResolution

public static long getResolution()
Deprecated. 
Get the nanosecond resolution of the timer

Returns:
The timer resolution in nanoseconds.