public TimerAssert hasTotalTime(TimeUnit timeUnit, Condition<? super Double> condition) {
    isNotNull();
    double totalTime = actual.totalTime(timeUnit);
    if (!condition.matches(totalTime)) {
      failWithMessage("Expected timer to have total time (%s) <%s> but total time was <%s>",
          timeUnit, condition, totalTime);
    }
    return myself;
  }
Verifies that the timer's total time satisfies the given condition.

@param timeUnit the time unit to which to convert the total time before evaluating
@param condition the criteria against which to evaluate the timer's total time
@return this assertion object
@throws AssertionError if the timer is {@code null}
@throws AssertionError if the condition rejects the timer's total time
geode-junit/src/main/java/org/apache/geode/test/micrometer/TimerAssert.java