Class Ticker

  • @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. 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.

    10.0 (mostly source-compatible since 9.0)
    Kevin Bourrillion
    • 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.