Stopwatch instead of
interacting with this class directly.Warning
this interface can only be used to measure elapsed time, not wall time.
| Modifier and Type | Field and Description |
|---|---|
| private static final Ticker |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public abstract long | |
| public static Ticker |
| SYSTEM_TICKER | back to summary |
|---|---|
| private static final Ticker SYSTEM_TICKER | |
| Ticker | back to summary |
|---|---|
| protected Ticker() Constructor for use by subclasses. | |
| read | back to summary |
|---|---|
| public abstract long read() Returns the number of nanoseconds elapsed since this ticker's fixed point of reference. | |
| systemTicker | back to summary |
|---|---|
| public static Ticker systemTicker() A ticker that reads the current time using
| |