docs: public double totalTime(TimeUnit unit) {
          T obj2 = ref.get();
          if (obj2 != null) {
              double prevLast = lastTime;
              lastTime = Math.max(TimeUtils.convert(totalTimeFunction.applyAsDouble(obj2), totalTimeFunctionUnit, baseTimeUnit()), 0);
              total.getCurrent().add(lastTime - prevLast);
          }
          return TimeUtils.convert(total.poll(), baseTimeUnit(), unit);
      }