Package io.debezium.util
Interface Stopwatch.Statistics
- Enclosing class:
- Stopwatch
public static interface Stopwatch.Statistics
The timing statistics for a recorded set of samples.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the arithmetic mean of all recorded durations.default String
Returns a string representation of the arithmetic mean of all recorded durations.long
getCount()
Returns the count of durations recorded.Returns the maximum of all recorded durations.default String
Returns a string representation of the maximum of all recorded durations.Returns the minimum of all recorded durations.default String
Returns a string representation of the minimum of all recorded durations.getTotal()
Returns the total of all recorded durations.default String
Returns a string representation of the total of all recorded durations.
-
Method Details
-
getCount
long getCount()Returns the count of durations recorded.- Returns:
- the count of durations
-
getTotal
Duration getTotal()Returns the total of all recorded durations.- Returns:
- The total duration; never null but possibly
Duration.ZERO
.
-
getMinimum
Duration getMinimum()Returns the minimum of all recorded durations.- Returns:
- The minimum duration; never null but possibly
Duration.ZERO
.
-
getMaximum
Duration getMaximum()Returns the maximum of all recorded durations.- Returns:
- The maximum duration; never null but possibly
Duration.ZERO
.
-
getAverage
Duration getAverage()Returns the arithmetic mean of all recorded durations.- Returns:
- The average duration; never null but possibly
Duration.ZERO
.
-
getTotalAsString
Returns a string representation of the total of all recorded durations.- Returns:
- the string representation of the total duration; never null but possibly
Duration.ZERO
.
-
getMinimumAsString
Returns a string representation of the minimum of all recorded durations.- Returns:
- the string representation of the minimum duration; never null but possibly
Duration.ZERO
.
-
getMaximumAsString
Returns a string representation of the maximum of all recorded durations.- Returns:
- the string representation of the maximum duration; never null but possibly
Duration.ZERO
.
-
getAverageAsString
Returns a string representation of the arithmetic mean of all recorded durations.- Returns:
- the string representation of the average duration; never null but possibly
Duration.ZERO
.
-