codahale/metrics — pull request #198 by organicveggie (2012-03-19 19:35:50+00:00)
Title: Timeable

This extracts the very basic update functionality from the Timer class into a separate interface to enable the use of TimerContext with classes other than just Timer.

Basically, we have a handful of custom metrics we wrote which are effectively exponentially weighted timers without a rate meter. I don't want to add a brand new metric, because that would require modifying MetricProcessor and everything that depends on it. And we'd still like to be able to take advantage of the fantastic TimerContext class.

This change makes that workflow possible.