Skip to content

Instantly share code, notes, and snippets.

import com.codahale.metrics.ExponentiallyDecayingReservoir;
import com.codahale.metrics.Timer;
import com.codahale.metrics.Timer.Context;
public class DropwizardMeanBug {
public static void main (String[] args) throws InterruptedException {
MyClock clock= new MyClock(System.currentTimeMillis());
ExponentiallyDecayingReservoir reservoir= new ExponentiallyDecayingReservoir(1028, 0.015, clock);
Timer timer= new Timer(reservoir, clock);