Class StopWatch
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.profiler.StopWatch
-
public class StopWatch extends java.lang.ObjectStopwatch utility class.
-
-
Constructor Summary
Constructors Constructor Description StopWatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetDuration()Returns the measured duration in nanoseconds.booleanisStarted()Returnstrueif the stopwatch is started.voidreset()Resets the stopwatch to "0".voidstart()Starts the stopwatch.voidstop()Stops the stopwatch.java.lang.StringtoString()
-
-
-
Method Detail
-
isStarted
public boolean isStarted()
Returnstrueif the stopwatch is started.- Returns:
trueif the stopwatch is started
-
start
public void start()
Starts the stopwatch.
-
stop
public void stop()
Stops the stopwatch.
-
reset
public void reset()
Resets the stopwatch to "0".
-
getDuration
public long getDuration()
Returns the measured duration in nanoseconds.- Returns:
- the measured duration in nanoseconds
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-