net.sf.antcontrib.perf
Class AntPerformanceListener.StopWatch
java.lang.Object
net.sf.antcontrib.perf.AntPerformanceListener.StopWatch
- AntPerformanceListener
public class AntPerformanceListener.StopWatch
extends java.lang.Object
A stopwatch, useful for 'quick and dirty' performance testing.
long | elapsed() - Elapsed time, difference between the last start time and now.
|
long | start() - Starts/restarts the stopwatch.
|
long | stop() - Stops the stopwatch.
|
long | total() - Total cumulative elapsed time.
|
StopWatch
public StopWatch()
Starts the stopwatch.
elapsed
public long elapsed()
Elapsed time, difference between the last start time and now.
start
public long start()
Starts/restarts the stopwatch.
- the start time, the long returned System.currentTimeMillis().
stop
public long stop()
Stops the stopwatch.
- the stop time, the long returned System.currentTimeMillis().
total
public long total()
Total cumulative elapsed time.