javadoc.com.google.common.base.Ticker.html Maven / Gradle / Ivy
The newest version!
Ticker (Guava: Google Core Libraries for Java 11.0.1 API)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
com.google.common.base
Class Ticker
java.lang.Object
com.google.common.base.Ticker
@Beta
@GwtCompatible
public abstract class Ticker
- extends Object
A time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.
- Since:
- 10.0 (mostly source-compatible since 9.0)
- Author:
- Kevin Bourrillion
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 |
---|
Ticker
protected Ticker()
- Constructor for use by subclasses.
Method Detail |
---|
read
public abstract long read()
- Returns the number of nanoseconds elapsed since this ticker's fixed
point of reference.
systemTicker
public static Ticker systemTicker()
- A ticker that reads the current time using
System.nanoTime()
.- Since:
- 10.0
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010-2012. All Rights Reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy