Class ManualTimer

java.lang.Object
com.yahoo.concurrent.ManualTimer
All Implemented Interfaces:
Timer

public class ManualTimer extends Object implements Timer
Simple manual Timer for use in tests
Author:
baldersheim
  • Constructor Details

    • ManualTimer

      public ManualTimer()
  • Method Details

    • set

      public void set(long ms)
    • advance

      public void advance(long ms)
    • milliTime

      public long milliTime()
      Description copied from interface: Timer
      Returns the current value of some arbitrary timer, in milliseconds. This method can only be used to measure elapsed time and is not related to any other notion of system or wall-clock time.
      Specified by:
      milliTime in interface Timer
      Returns:
      The current value of the timer, in milliseconds.