public interface Ticker
| Modifier and Type | Method and Description |
|---|---|
static @NonNull Ticker |
disabledTicker()
Returns a ticker that always returns
0. |
long |
read()
Returns the number of nanoseconds elapsed since this ticker's fixed point of reference.
|
static @NonNull Ticker |
systemTicker()
Returns a ticker that reads the current time using
System.nanoTime(). |
long read()
static @NonNull Ticker systemTicker()
System.nanoTime().System.nanoTime()static @NonNull Ticker disabledTicker()
0.0