Package org.apache.sling.commons.metrics
Interface Timer
A timer metric which aggregates timing durations and provides duration statistics.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiontime()Returns a newTimer.Context.voidAdds a recorded duration.
-
Method Details
-
update
Adds a recorded duration.- Parameters:
duration- the length of the durationunit- the scale unit ofduration
-
time
Timer.Context time()Returns a newTimer.Context.- Returns:
- a new
Timer.Context - See Also:
-