Interface OperationTimer
public interface OperationTimer
A timer metric that records duration of operations for metrics purposes.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAn interface for stopping the timer and returning elapsed time. -
Method Summary
-
Method Details
-
startTimer
OperationTimer.TimingContext startTimer()Starts the timer.- Returns:
- The produced TimingContext, which must be stopped or closed when the operation being timed has completed.
-