| Modifier and Type | Field and Description |
|---|---|
protected Clock |
clock
Clock to use for measuring the time of calls.
|
| Constructor and Description |
|---|
AbstractTimer(Clock clock)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
record(Callable<T> f)
Executes the callable `f` and records the time taken.
|
void |
record(Runnable f)
Executes the runnable `f` and records the time taken.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasExpired, id, measureprotected final Clock clock
public AbstractTimer(Clock clock)