Class StopWatch
java.lang.Object
org.eclipse.m2m.atl.emftvm.profiler.StopWatch
Stopwatch utility class.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
StopWatch
public StopWatch()
-
-
Method Details
-
isStarted
public boolean isStarted()Returnstrue
if the stopwatch is started.- Returns:
true
if 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
-