| |
|
| java.lang.Object com.ibatis.common.util.Stopwatch
Stopwatch | public class Stopwatch (Code) | | Stopwatch class used for testing.
|
getAvgTaskTime | public long getAvgTaskTime(String taskName)(Code) | | Get the average time added to a task
Parameters: taskName - - the name of the task - the average time added to a task |
getMaxTaskTime | public long getMaxTaskTime(String taskName)(Code) | | Get the maximum time added to a task
Parameters: taskName - - the name of the task - the maximum time added to a task |
getMinTaskTime | public long getMinTaskTime(String taskName)(Code) | | Get the minimum time added to a task
Parameters: taskName - - the name of the task - the minimum time added to a task |
getTaskCount | public long getTaskCount(String taskName)(Code) | | Get the number of times assigned to a task
Parameters: taskName - - the name of the task - the number of times |
getTaskNames | public Iterator getTaskNames()(Code) | | Get an iterator of the tasks
- the Iterator |
getTotalTaskTime | public long getTotalTaskTime(String taskName)(Code) | | Get the total time added to a task
Parameters: taskName - - the name of the task - the total time added to the task |
mergeStopwatch | public void mergeStopwatch(Stopwatch watch)(Code) | | Merge another StopWatch into this one
Parameters: watch - - the StopWatch to merge into this one |
reset | public synchronized void reset()(Code) | | Reset all of the timers in this StopWatch
|
start | public void start(String taskName)(Code) | | Start (create) a task
Parameters: taskName - - the name of the task |
stop | public void stop()(Code) | | Stop the timer on a task
|
|
|
|