@Beta @GwtCompatible public abstract class Ticker extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Ticker()
Constructor for use by subclasses.
|
Modifier and Type | Method and Description |
---|---|
abstract 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() . |
public abstract long read()
public static Ticker systemTicker()
System.nanoTime()
.