@Override
  public int size() {
    return this.histogramSnapshot.percentileValues().length;
  }
This implementation is just for a timer as it needs the TimeUnit to convert from nanoseconds.
iotdb-core/metrics/core/src/main/java/org/apache/iotdb/metrics/core/type/IoTDBTimerHistogramSnapshot.java