Documentation of 'jminhep.utils.StopWatch' Java class
StopWatch
jminhep.utils

Class StopWatch



  • public class StopWatch
    extends java.lang.Object
    The StopWatch class represents a very simple stop watch that can be used to time events.
    • Constructor Summary

      Constructors 
      Constructor and Description
      StopWatch()
      Construct a new StopWatch object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      long getTime()
      Get the time recorded by this StopWatch object.
      void start()
      Start this StopWatch object.
      void stop()
      Stop this StopWatch object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StopWatch

        public StopWatch()
        Construct a new StopWatch object.
    • Method Detail

      • start

        public void start()
        Start this StopWatch object. Starting a StopWatch that was already running resets the watch.
      • stop

        public void stop()
        Stop this StopWatch object.
      • getTime

        public long getTime()
        Get the time recorded by this StopWatch object. The value returned if getTime is called before this StopWatch has been stopped is meaningless.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.