javax.media.j3d
Class J3dClock

java.lang.Object
  extended by javax.media.j3d.J3dClock

 class J3dClock
extends java.lang.Object

Utility class to provide a more accurate replacement for System.currentTimeMillis().


Field Summary
private static long deltaTime
           
private static long nsecPerMsec
           
private static boolean skewAdjustedClock
           
 
Constructor Summary
private J3dClock()
          Private constructor, since no instance should ever be created.
 
Method Summary
(package private) static long currentTimeMillis()
          Returns the current time in milliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

skewAdjustedClock

private static boolean skewAdjustedClock

deltaTime

private static long deltaTime

nsecPerMsec

private static final long nsecPerMsec
See Also:
Constant Field Values
Constructor Detail

J3dClock

private J3dClock()
Private constructor, since no instance should ever be created.

Method Detail

currentTimeMillis

static long currentTimeMillis()
Returns the current time in milliseconds. This is a more accurate version of System.currentTimeMillis and should be used in its place.

Returns:
the current time in milliseconds.


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.