- Enclosing interface:
Timer
public static interface Timer.Sample
Measures an interval of time from instantiation to an explicit invocation of
stop(io.helidon.metrics.api.Timer)
.
A Sample
is not bound to a specific Timer
until it is stopped, at
which time the caller specifies which timer to update.
-
Method Summary
-
Method Details
-
stop
Ends the interval, recording the current time as the end time of the interval and applying the elapsed time to the specifiedTimer
.- Parameters:
timer
- the timer to update with this interval- Returns:
- duration of the sample (in nanoseconds)
-