public class NanoTimer extends CalibratingTimer
System.nanoTime() method introduced in 1.5 to try to obtain higher resolution
timestamps than those available via System.currentTimeMillis().| Constructor and Description |
|---|
NanoTimer() |
| Modifier and Type | Method and Description |
|---|---|
long |
current()
Return the current value for this timer.
|
clearMaxDriftRatio, getElapsedMicros, getElapsedMillis, getMaxDriftRatio, resetpublic long current()
CalibratingTimercurrent in class CalibratingTimerCopyright © 2015. All rights reserved.