public abstract class CalibratingTimer extends Object implements MediaTimer
| Constructor and Description |
|---|
CalibratingTimer() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearMaxDriftRatio()
Clears out our remembered max drift.
|
abstract long |
current()
Return the current value for this timer.
|
long |
getElapsedMicros()
Returns the number of microseconds that have elapsed since the
timer was created or last
MediaTimer.reset(). |
long |
getElapsedMillis()
Returns the number of milliseconds that have elapsed since the
timer was created or last
MediaTimer.reset(). |
float |
getMaxDriftRatio()
Returns the greatest drift ratio we've had to compensate for.
|
void |
reset()
Resets the timer's monotonically increasing value.
|
public long getElapsedMicros()
MediaTimerMediaTimer.reset(). Note: the
accuracy of this method is highly dependent on the timer
implementation used.getElapsedMicros in interface MediaTimerpublic long getElapsedMillis()
MediaTimerMediaTimer.reset(). Note: the
accuracy of this method is highly dependent on the timer
implementation used.getElapsedMillis in interface MediaTimerpublic void reset()
MediaTimerreset in interface MediaTimerpublic abstract long current()
public float getMaxDriftRatio()
public void clearMaxDriftRatio()
Copyright © 2015. All rights reserved.