code: public double getAverageRequestDuration(String intervalName, TimeUnit unit) {
  		return unit.transformNanos(totalTime.getValueAsLong(intervalName)) / totalRequests.getValueAsDouble(intervalName);
  	}
docs: Returns the average request duration for the given interval and converted to the given timeunit.
  @param intervalName name of the interval.
  @param unit timeunit.
  @return