Interface ConsumerMetrics.ConsumerTimer
- Enclosing interface:
ConsumerMetrics
public static interface ConsumerMetrics.ConsumerTimer
Represents a timer interface used for measuring and observing the duration of tasks. Start
measuring elapsed time when created.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Close this timer.doubleReturn the elapsed time in milliseconds.
-
Method Details
-
observeDuration
double observeDuration()Return the elapsed time in milliseconds. -
close
default void close()Close this timer.
-