Class Ticker

java.lang.Object
ai.nextbillion.maps.internal.ratelimiter.Ticker

public abstract class Ticker
extends java.lang.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.

Author:
Kevin Bourrillion
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected Ticker()
    Constructor for use by subclasses.
  • Method Summary

    Modifier and Type Method Description
    abstract long read()  
    static Ticker systemTicker()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Ticker

      protected Ticker()
      Constructor for use by subclasses.
  • Method Details