com.intel.cosbench.bench
Class Counter
java.lang.Object
com.intel.cosbench.bench.Counter
public class Counter
- extends java.lang.Object
- Author:
- ywang19
Constructor Summary |
Counter(int size)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RES_INT
public static final long RES_INT
- See Also:
- Constant Field Values
RES_MAX
public static final long RES_MAX
- See Also:
- Constant Field Values
UL
public static final int UL
- See Also:
- Constant Field Values
Counter
public Counter(int size)
size
public int size()
get
public int get(int index)
doAdd
public void doAdd(long time)
- The method counts the time to corresponding bucket.
- Parameters:
time
- the response time to be counted
getResCounter
public static Counter getResCounter()
getResTime
public static long[] getResTime(int index)