com.threerings.media.timer
Class PerfTimer
java.lang.Object
com.threerings.media.timer.CalibratingTimer
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 |
|
Method Summary |
long |
current()
Deprecated. Return the current value for this timer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_timer
protected sun.misc.Perf _timer
- Deprecated.
- A performance timer object.
PerfTimer
public PerfTimer()
- Deprecated.
current
public long current()
- Deprecated.
- Description copied from class:
CalibratingTimer
- Return the current value for this timer.
- Specified by:
current in class CalibratingTimer