@Test public void testEmpty() { TimeStat stat = new TimeStat(); TimeDistribution allTime = stat.getAllTime(); assertEquals(allTime.getCount(), 0.0); assertEquals(allTime.getTotal(), 0.0); assertEquals(allTime.getMin(), Double.NaN); assertEquals(allTime.getMax(), Double.NaN); assertEquals(allTime.getP50(), Double.NaN); assertEquals(allTime.getP75(), Double.NaN); assertEquals(allTime.getP90(), Double.NaN); assertEquals(allTime.getP99(), Double.NaN); }
@Nested public TimeDistribution getAllTime() { return allTime; }
TimeStat { @Nested public TimeDistribution getAllTime() { return allTime; } }
TimeStat { @Nested public TimeDistribution getAllTime() { return allTime; } TimeStat();  TimeStat(Ticker ticker); }
TimeStat { @Nested public TimeDistribution getAllTime() { return allTime; } TimeStat();  TimeStat(Ticker ticker); void add(long value, TimeUnit timeUnit); void add(double value, TimeUnit timeUnit); void add(Duration duration); T time(Callable<T> callable); BlockTimer time(); @Nested TimeDistribution getOneMinute(); @Nested TimeDistribution getFiveMinutes(); @Nested TimeDistribution getFifteenMinutes(); @Nested TimeDistribution getAllTime(); @Flatten BucketedTimeDistribution getBucket(); TimeDistributionStatSnapshot snapshot(); }
TimeStat { @Nested public TimeDistribution getAllTime() { return allTime; } TimeStat();  TimeStat(Ticker ticker); void add(long value, TimeUnit timeUnit); void add(double value, TimeUnit timeUnit); void add(Duration duration); T time(Callable<T> callable); BlockTimer time(); @Nested TimeDistribution getOneMinute(); @Nested TimeDistribution getFiveMinutes(); @Nested TimeDistribution getFifteenMinutes(); @Nested TimeDistribution getAllTime(); @Flatten BucketedTimeDistribution getBucket(); TimeDistributionStatSnapshot snapshot();  }