jminhep.utils
Class StopWatch
- java.lang.Object
-
- jminhep.utils.StopWatch
-
public class StopWatch extends java.lang.ObjectThe 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 longgetTime()Get the time recorded by this StopWatch object.voidstart()Start this StopWatch object.voidstop()Stop this 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