Skip to content

Provide a way to start/stop a timer in different parts without wrapping the code that runs #15

@marianoguerra

Description

@marianoguerra

there's an API on metrics to do this:

http://metrics.codahale.com/manual/core/#timers

but the metrics-clojure API only provides (as far as I can see on the docs) time! and time-fn!:

http://metrics-clojure.readthedocs.org/en/latest/metrics/timers.html#time

would it be possible to have an api to do something like:

(def timer (start-timer))

...

; somewhere else

(stop-timer timer)

(the example is just the first idea that came to my mind)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions