Class StopWatch

java.lang.Object
org.antublue.test.engine.internal.util.StopWatch

public class StopWatch extends Object
Class to implement a stop watch
  • Constructor Details

    • StopWatch

      public StopWatch()
      Constructor
  • Method Details

    • reset

      public StopWatch reset()
      Constructor

      The stop watch starts automatically

      / public StopWatch() { reset(); }

      /** Method to reset the stop watch

      Returns:
      this
    • stop

      public StopWatch stop()
      Method to stop the stop watch
      Returns:
      this
    • elapsedTime

      public Duration elapsedTime()
      Method to get the elapsed time in nanoseconds
      Returns:
      the elapsed time in nanoseconds
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object