Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.intel.cosbench.bench
Class Counter

    java.lang.Object
      com.intel.cosbench.bench.Counter

    public class Counter

extends java.lang.Object

Author:
  ywang19

Field Summary
`static long` | `RES_INT`
`static long` | `RES_MAX`
`static int` | `UL`

Constructor Summary
`Counter(int size)`

Method Summary
`void` | `doAdd(long time)` The method counts the time to corresponding bucket.
`int` | `get(int index)`
`static Counter` | `getResCounter()`
`static long[]` | `getResTime(int index)`
`int` | `size()`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### 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

Constructor Detail

### Counter

    public Counter(int size)

Method Detail

### 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD