|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.util.StopWatch
public final class StopWatch
Class provides methods that allow tasks to be timed. This class is useful for determing slow areas of a program.
Constructor Summary | |
---|---|
StopWatch()
|
Method Summary | |
---|---|
java.lang.String |
getPrintableString(java.lang.String eventName1,
java.lang.String eventName2)
|
long |
getTimeBetweenEvents(java.lang.String eventName1,
java.lang.String eventName2)
|
void |
registerEvent(java.lang.String eventName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StopWatch()
Method Detail |
---|
public void registerEvent(java.lang.String eventName)
public long getTimeBetweenEvents(java.lang.String eventName1, java.lang.String eventName2)
public java.lang.String getPrintableString(java.lang.String eventName1, java.lang.String eventName2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |