public interface Timer
Modifier and Type | Interface | Description |
---|---|---|
static interface |
Timer.Context |
A timing context.
|
Modifier and Type | Method | Description |
---|---|---|
Timer.Context |
time() |
Returns a new
Timer.Context . |
void |
update(long duration,
TimeUnit unit) |
Adds a recorded duration.
|
Timer.Context time()
Timer.Context
.Timer.Context
Timer.Context
void update(long duration, TimeUnit unit)
duration
- the length of the durationunit
- the scale unit of duration