|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.common.base.Ticker
@Beta @GwtCompatible public abstract class Ticker
A time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.
Constructor Summary | |
---|---|
protected |
Ticker()
Constructor for use by subclasses. |
Method Summary | |
---|---|
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() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Ticker()
Method Detail |
---|
public abstract long read()
public static Ticker systemTicker()
System.nanoTime()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |