Package io.quarkus.runtime.metrics
Interface MetricsFactory.TimeRecorder
- Enclosing interface:
- MetricsFactory
public static interface MetricsFactory.TimeRecorder
A time recorder that tracks elapsed time using incremental updates
using a duration with a specified time unit.
-
Method Summary
-
Method Details
-
update
- Parameters:
amount- Duration of a single event being measured by this timer. If the amount is less than 0 the value will be dropped.unit- Time unit for the amount being recorded.
-
update
Updates the statistics kept by the recorder with the specified amount.- Parameters:
duration- Duration of a single event being measured by this timer.
-