Class Ticker

java.lang.Object
com.google.common.base.Ticker

@Beta @GwtCompatible @Deprecated(since="2022-12-01") public abstract class Ticker extends Object
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 Details

    • read

      public abstract long read()
      Deprecated.
      Returns the number of nanoseconds elapsed since this ticker's fixed point of reference.
    • systemTicker

      public static Ticker systemTicker()
      Deprecated.
      A ticker that reads the current time using System.nanoTime().
      Since:
      10.0