com.threerings.media.timer
Class PerfTimer

java.lang.Object
  extended by com.threerings.media.timer.CalibratingTimer
      extended by com.threerings.media.timer.PerfTimer
All Implemented Interfaces:
MediaTimer

Deprecated. Use NanoTimer instead.

@Deprecated
public class PerfTimer
extends CalibratingTimer

A timer that uses the performance clock exposed by Sun in JDK 1.4.2.


Field Summary
protected  sun.misc.Perf _timer
          Deprecated. A performance timer object.
 
Fields inherited from class com.threerings.media.timer.CalibratingTimer
_calibrateInterval, _debugCalibrate, _driftMilliStamp, _driftRatio, _driftTimerStamp, _maxDriftRatio, _microDivider, _milliDivider, _priorCurrent, _startStamp, CALIBRATE_INTERVAL, log, MAX_ALLOWED_DRIFT_RATIO, MIN_ALLOWED_DRIFT_RATIO
 
Constructor Summary
PerfTimer()
          Deprecated.  
 
Method Summary
 long current()
          Deprecated. Return the current value for this timer.
 
Methods inherited from class com.threerings.media.timer.CalibratingTimer
calibrate, clearMaxDriftRatio, elapsed, getElapsedMicros, getElapsedMillis, getMaxDriftRatio, init, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_timer

protected sun.misc.Perf _timer
Deprecated. 
A performance timer object.

Constructor Detail

PerfTimer

public PerfTimer()
Deprecated. 
Method Detail

current

public long current()
Deprecated. 
Description copied from class: CalibratingTimer
Return the current value for this timer.

Specified by:
current in class CalibratingTimer