Package com.ibm.wala.util.perf
Class Stopwatch
- java.lang.Object
-
- com.ibm.wala.util.perf.Stopwatch
-
- Direct Known Subclasses:
StopwatchGC
public class Stopwatch extends java.lang.Object
Basic class to time events
-
-
Field Summary
Fields Modifier and Type Field Description protected int
count
-
Constructor Summary
Constructors Constructor Description Stopwatch()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCount()
long
getElapsedMillis()
void
start()
void
stop()
java.lang.String
toString()
-
-
-
Method Detail
-
start
public void start()
-
stop
public void stop()
-
getElapsedMillis
public long getElapsedMillis()
- Returns:
- elapsed time in ms
-
getCount
public int getCount()
- Returns:
- number of times this stopwatch was stopped
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-