public static class Timer.Sample
extends java.lang.Object
stop(Timer)
. Note how the Timer
isn't provided until the
sample is stopped, allowing you to determine the timer's tags at the last minute.Modifier and Type | Method and Description |
---|---|
long |
stop(Timer timer)
Records the duration of the operation
|
public long stop(Timer timer)
timer
- The timer to record the sample to.