@Test void testSnapshot() { Snapshot snapshot = dataSetTimer.getSnapshot(); assertAll("Testing statistical values for snapshot", () -> assertThat("median", snapshot.getMedian(), is(withinTolerance(480))), () -> assertThat("75th percentile", snapshot.get75thPercentile(), is(withinTolerance(750))), () -> assertThat("95th percentile", snapshot.get95thPercentile(), is(withinTolerance(960))), () -> assertThat("78th percentile", snapshot.get98thPercentile(), is(withinTolerance(980))), () -> assertThat("99th percentile", snapshot.get99thPercentile(), is(withinTolerance(980))), () -> assertThat("999th percentile", snapshot.get999thPercentile(), is(withinTolerance(990))), () -> assertThat("mean", snapshot.getMean(), is(withinTolerance(506.3))), () -> assertThat("stddev", snapshot.getStdDev(), is(withinTolerance(294.3))), () -> assertThat("min", snapshot.getMin(), Matchers.is(0L)), () -> assertThat("max", snapshot.getMax(), Matchers.is(990L)), () -> assertThat("size", snapshot.size(), Matchers.is(200)) ); }
@Override public Snapshot getSnapshot() { return delegate.getSnapshot(); }
HelidonTimer extends MetricImpl implements Timer { @Override public Snapshot getSnapshot() { return delegate.getSnapshot(); } }
HelidonTimer extends MetricImpl implements Timer { @Override public Snapshot getSnapshot() { return delegate.getSnapshot(); } private  HelidonTimer(String type, Metadata metadata, Timer delegate); }
HelidonTimer extends MetricImpl implements Timer { @Override public Snapshot getSnapshot() { return delegate.getSnapshot(); } private  HelidonTimer(String type, Metadata metadata, Timer delegate); @Override void update(long duration, TimeUnit unit); @Override T time(Callable<T> event); @Override void time(Runnable event); @Override Context time(); @Override long getCount(); @Override double getFifteenMinuteRate(); @Override double getFiveMinuteRate(); @Override double getMeanRate(); @Override double getOneMinuteRate(); @Override Snapshot getSnapshot(); @Override void prometheusData(StringBuilder sb, MetricID metricID, boolean withHelpType); @Override String prometheusValue(); @Override void jsonData(JsonObjectBuilder builder, MetricID metricID); @Override boolean equals(Object o); @Override int hashCode(); }
HelidonTimer extends MetricImpl implements Timer { @Override public Snapshot getSnapshot() { return delegate.getSnapshot(); } private  HelidonTimer(String type, Metadata metadata, Timer delegate); @Override void update(long duration, TimeUnit unit); @Override T time(Callable<T> event); @Override void time(Runnable event); @Override Context time(); @Override long getCount(); @Override double getFifteenMinuteRate(); @Override double getFiveMinuteRate(); @Override double getMeanRate(); @Override double getOneMinuteRate(); @Override Snapshot getSnapshot(); @Override void prometheusData(StringBuilder sb, MetricID metricID, boolean withHelpType); @Override String prometheusValue(); @Override void jsonData(JsonObjectBuilder builder, MetricID metricID); @Override boolean equals(Object o); @Override int hashCode();  }