Class J3DTimer

  extended by com.sun.j3d.utils.timer.J3DTimer

public class J3DTimer
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()
          Get the nanosecond resolution of the timer
static long getValue()
          Get the timer value, in nanoseconds.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


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

The current timer value in nanoseconds.


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

The timer resolution in nanoseconds.