@FunctionalInterface public interface Ticker
Warning: this interface can only be used to measure elapsed time, not wall time.
| Modifier and Type | Method and Description |
|---|---|
long |
read()
Returns the number of nanoseconds elapsed since this ticker's fixed point of reference.
|
static Ticker |
systemTicker()
A ticker that reads the current time using
System.nanoTime(). |
long read()
static Ticker systemTicker()
System.nanoTime().Copyright © 2020 LeanCloud. All rights reserved.