1. Steve Losh
  2. metrics-clojure


metrics-clojure / docs / source / meters.rst

Diff from to

File docs/source/meters.rst

 The second argument to ``meter`` is a string describing the "units" for the
 meter.  In this example it's "files", as in "18732 files".
+.. _defmeter:
+You can also use the ``defmeter`` macro to create a meter and bind it to a var
+in one concise, easy step::
+    (use '[metrics.meters :only (defmeter)])
+    (defmeter files-served "files")
+All the ``def[metric]`` macros do some :ref:`magic <desugaring>` to the metric
+title to make it easier to define.