public abstract static class LongTaskTimer.Sample
extends java.lang.Object
Constructor and Description |
---|
Sample() |
Modifier and Type | Method and Description |
---|---|
abstract double |
duration(java.util.concurrent.TimeUnit unit) |
abstract long |
stop()
Records the duration of the operation
|
public abstract long stop()
public abstract double duration(java.util.concurrent.TimeUnit unit)
unit
- time unit to which the return value will be scaled