Package io.debezium.util
Interface Stopwatch.Statistics
-
- Enclosing class:
- Stopwatch
public static interface Stopwatch.StatisticsThe timing statistics for a recorded set of samples.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description DurationgetAverage()Returns the arithmetic mean of all recorded durations.default StringgetAverageAsString()Returns a string representation of the arithmetic mean of all recorded durations.longgetCount()Returns the count of durations recorded.DurationgetMaximum()Returns the maximum of all recorded durations.default StringgetMaximumAsString()Returns a string representation of the maximum of all recorded durations.DurationgetMinimum()Returns the minimum of all recorded durations.default StringgetMinimumAsString()Returns a string representation of the minimum of all recorded durations.DurationgetTotal()Returns the total of all recorded durations.default StringgetTotalAsString()Returns a string representation of the total of all recorded durations.
-
-
-
Method Detail
-
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
default String 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
default String 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
default String 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
default String 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.
-
-