Modifier and Type | Interface and Description |
---|---|
static interface |
Timer.Context
A timing context.
|
Modifier and Type | Method and Description |
---|---|
Timer.Context |
time()
Returns a new
Timer.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
Timer.Context time()
Timer.Context
.Timer.Context
Timer.Context
Copyright © 2017 The Apache Software Foundation. All rights reserved.