Interface OperationTimer
-
public interface OperationTimer
A timer metric that records duration of operations for metrics purposes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
OperationTimer.TimingContext
An interface for stopping the timer and returning elapsed time.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OperationTimer.TimingContext
startTimer()
Starts the timer.
-
-
-
Method Detail
-
startTimer
OperationTimer.TimingContext startTimer()
Starts the timer.- Returns:
- The produced TimingContext, which must be stopped or closed when the operation being timed has completed.
-
-