/** * Returns the sum of all recorded durations. * * @return the sum of all recorded durations */ @Override public double sum() { return convertFromNS(histogram.sum()); }
/** * Returns the shortest recorded duration. * * @return the shortest recorded duration */ @Override public double min() { return convertFromNS(histogram.min()); }
/** * Returns the standard deviation of all recorded durations. * * @return the standard deviation of all recorded durations */ @Override public double stdDev() { return convertFromNS(histogram.stdDev()); }
/** * Returns the longest recorded duration. * * @return the longest recorded duration */ @Override public double max() { return convertFromNS(histogram.max()); }
/** * Returns the arithmetic mean of all recorded durations. * * @return the arithmetic mean of all recorded durations */ @Override public double mean() { return convertFromNS(histogram.mean()); }
@Override public Snapshot getSnapshot() { final double[] values = histogram.getSnapshot().getValues(); final double[] converted = new double[values.length]; for (int i = 0; i < values.length; i++) { converted[i] = convertFromNS(values[i]); } return new Snapshot(converted); }