|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibatis.common.util.Stopwatch
Stopwatch class used for testing.
Constructor Summary | |
Stopwatch()
|
Method Summary | |
long |
getAvgTaskTime(java.lang.String taskName)
Get the average time added to a task |
long |
getMaxTaskTime(java.lang.String taskName)
Get the maximum time added to a task |
long |
getMinTaskTime(java.lang.String taskName)
Get the minimum time added to a task |
long |
getTaskCount(java.lang.String taskName)
Get the number of times assigned to a task |
java.util.Iterator |
getTaskNames()
Get an iterator of the tasks |
long |
getTotalTaskTime(java.lang.String taskName)
Get the total time added to a task |
void |
mergeStopwatch(Stopwatch watch)
Merge another StopWatch into this one |
void |
reset()
Reset all of the timers in this StopWatch |
void |
start(java.lang.String taskName)
Start (create) a task |
void |
stop()
Stop the timer on a task |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Stopwatch()
Method Detail |
public java.util.Iterator getTaskNames()
public long getTaskCount(java.lang.String taskName)
taskName
- - the name of the task
public long getTotalTaskTime(java.lang.String taskName)
taskName
- - the name of the task
public long getMaxTaskTime(java.lang.String taskName)
taskName
- - the name of the task
public long getMinTaskTime(java.lang.String taskName)
taskName
- - the name of the task
public long getAvgTaskTime(java.lang.String taskName)
taskName
- - the name of the task
public void start(java.lang.String taskName)
taskName
- - the name of the taskpublic void stop()
public void mergeStopwatch(Stopwatch watch)
watch
- - the StopWatch to merge into this onepublic void reset()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |