public static class StoreTimerSnapshot.CounterSnapshot extends Object
StoreTimer.Counter
.
Contains the number of occurrences and cummulative time spent on an associated event.
Modifier and Type | Method and Description |
---|---|
static StoreTimerSnapshot.CounterSnapshot |
from(StoreTimer.Counter counter)
Creates an immutable snapshot of a
StoreTimer.Counter . |
int |
getCount()
Get the number of occurrences of the associated event.
|
long |
getTimeNanos()
Get the cumulative time spent on the associated event.
|
@Nonnull public static StoreTimerSnapshot.CounterSnapshot from(@Nonnull StoreTimer.Counter counter)
StoreTimer.Counter
.counter
- to create the snapshot from@Nonnull public int getCount()
public long getTimeNanos()