Package com.google.common.base
Class Ticker
java.lang.Object
com.google.common.base.Ticker
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
A time source; returns a time value representing the number of nanoseconds elapsed since some
fixed but arbitrary point in time. Note that most users should use
Stopwatch instead of
interacting with this class directly.
Warning: this interface can only be used to measure elapsed time, not wall time.
- Since:
- 10.0 (mostly source-compatible since 9.0)
-
Method Summary
Modifier and TypeMethodDescriptionabstract longread()Deprecated.Returns the number of nanoseconds elapsed since this ticker's fixed point of reference.static TickerDeprecated.A ticker that reads the current time usingSystem.nanoTime().
-
Method Details
-
read
public abstract long read()Deprecated.Returns the number of nanoseconds elapsed since this ticker's fixed point of reference. -
systemTicker
Deprecated.A ticker that reads the current time usingSystem.nanoTime().- Since:
- 10.0
-