chord.util
Class StopWatch
java.lang.Object
chord.util.StopWatch
public class StopWatch
- extends java.lang.Object
Simple class for measuring elapsed time.
- Author:
- Percy Liang (pliang@cs.berkeley.edu)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
startTime
public long startTime
endTime
public long endTime
ms
public long ms
n
public int n
StopWatch
public StopWatch()
StopWatch
public StopWatch(long ms)
reset
public void reset()
start
public StopWatch start()
stop
public StopWatch stop()
accumStop
public StopWatch accumStop()
add
public void add(StopWatch w)
getCurrTimeLong
public long getCurrTimeLong()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
isRunning
public boolean isRunning()