@ProviderType public interface TimerStats extends Stats, Counting
Modifier and Type | Interface and Description |
---|---|
static interface |
TimerStats.Context
A timing context.
|
Modifier and Type | Method and Description |
---|---|
TimerStats.Context |
time()
Returns a new
TimerStats.Context . |
void |
update(long duration,
java.util.concurrent.TimeUnit unit)
Adds a recorded duration.
|
void update(long duration, java.util.concurrent.TimeUnit unit)
duration
- the length of the durationunit
- the scale unit of duration
TimerStats.Context time()
TimerStats.Context
.TimerStats.Context
TimerStats.Context
Copyright © 2010 - 2020 Adobe. All Rights Reserved