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

    • start

      public StopWatch start()
      Method to start (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