private void addTimer(String name, Timer timer, MetricsRecordBuilder builder) {
    addMeter(name, timer.getMeter(), builder);
    addHistogram(name, timer.getHistogram(), builder);
  }
Add Dropwizard-Metrics rate information to a Hadoop-Metrics2 record builder, converting the
rates to the appropriate unit.
@param builder A Hadoop-Metrics2 record builder.
@param name    A base name for this record.
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/metrics/impl/HBaseMetrics2HadoopMetricsAdapter.java