instrument-0.6.1.0: Easy stats/metrics instrumentation for Haskell programs
Safe HaskellSafe-Inferred
LanguageHaskell2010

Instrument.Counter

Synopsis

Documentation

readCounter :: Counter -> IO Integer Source #

Reads current counter value

resetCounter :: Counter -> IO Integer Source #

Reset the counter while reading it

add :: Int -> Counter -> IO () Source #