public static class StoreTimer.Counter extends Object
StoreTimer.Event
.Constructor and Description |
---|
Counter() |
Modifier and Type | Method and Description |
---|---|
int |
getCount()
Get the number of occurrences of the associated event.
|
long |
getTimeNanos()
Get the cumulative time spent on the associated event.
|
void |
increment(int amount)
Add an additional number of occurrences spent performing the associated event.
|
void |
record(long timeDifference)
Add additional time spent performing the associated event.
|
@Nonnull public int getCount()
public long getTimeNanos()
public void record(long timeDifference)
timeDifference
- additional time spent performing the associated eventpublic void increment(int amount)
amount
- additional number of times spent performing the associated event