Class StopWatch

java.lang.Object
org.rspeer.commons.StopWatch

public class StopWatch extends Object
  • Method Details

    • fixed

      public static StopWatch fixed(Supplier<Instant> start, Duration duration)
    • fixed

      public static StopWatch fixed(Duration duration)
    • start

      public static StopWatch start(Supplier<Instant> start)
    • start

      public static StopWatch start()
    • exceeds

      public boolean exceeds(Duration duration)
    • setEndIn

      public void setEndIn(Duration duration)
    • isPaused

      public boolean isPaused()
    • isRunning

      public boolean isRunning()
    • getElapsed

      public Duration getElapsed()
    • getRemaining

      public Duration getRemaining()
    • toElapsedString

      public String toElapsedString()
    • toRemainingString

      public String toRemainingString()
    • reset

      public void reset()
    • pause

      public void pause()
    • resume

      public void resume()
    • getRate

      public double getRate(long value, Duration rate)
    • getHourlyRate

      public double getHourlyRate(long value)
    • toString

      public String toString()
      Overrides:
      toString in class Object