Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.ibatis.common.util
Class Stopwatch.TaskStat  view Stopwatch.TaskStat download Stopwatch.TaskStat.java

java.lang.Object
  extended bycom.ibatis.common.util.Stopwatch.TaskStat
Enclosing class:
Stopwatch

private class Stopwatch.TaskStat
extends java.lang.Object


Field Summary
private  long count
           
private  long max
           
private  long min
           
private  long total
           
private static long UNSET
           
 
Constructor Summary
private Stopwatch.TaskStat()
           
 
Method Summary
 void appendTaskTime(long taskTime)
          Add some time to a task
 long getAverage()
          Get the average of the times added to the task
 long getCount()
          Get the number of times added to the task
 long getMax()
          Get the maximum of the times added to the task
 long getMin()
          Get the minimum of the times added to the task
 long getTotal()
          Get the total time for the task
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSET

private static final long UNSET
See Also:
Constant Field Values

count

private long count

total

private long total

min

private long min

max

private long max
Constructor Detail

Stopwatch.TaskStat

private Stopwatch.TaskStat()
Method Detail

appendTaskTime

public void appendTaskTime(long taskTime)
Add some time to a task


getTotal

public long getTotal()
Get the total time for the task


getMax

public long getMax()
Get the maximum of the times added to the task


getMin

public long getMin()
Get the minimum of the times added to the task


getCount

public long getCount()
Get the number of times added to the task


getAverage

public long getAverage()
Get the average of the times added to the task