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
    • elapsedNanoseconds

      public long elapsedNanoseconds()
      Method to get the elapsed time in nanoseconds
      Returns:
      the elapsed time in nanoseconds
    • elapsedMilliseconds

      public long elapsedMilliseconds()
      Method to get the elapsed time in milliseconds
      Returns:
      the elapsed time in milliseconds