Class Ticker

java.lang.Object
com.peterphi.std.util.Ticker
All Implemented Interfaces:
Serializable

public class Ticker extends Object implements Serializable
Keeps track of how long it has been since a given timestamp (by default, when the instance was created)
This is mainly designed for testing timing
See Also:
  • Constructor Details

    • Ticker

      public Ticker()
    • Ticker

      public Ticker(Date date)
    • Ticker

      public Ticker(Calendar calendar)
    • Ticker

      public Ticker(long started)
  • Method Details

    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • getStartDate

      public Date getStartDate()
    • getStart

      public long getStart()
    • getElapsed

      public long getElapsed()
    • getElapsedTime

      public Timeout getElapsedTime()