Safe Haskell | None |
---|
A timer is basically a histogram of the duration of a type of event and a meter of the rate of its occurrence.
Documentation
A measure of time statistics for the duration of an event
mkTimer :: PrimMonad m => m NominalDiffTime -> Seed -> m (Timer m)Source
Create a timer using a custom function for retrieving the current time.
This is mostly exposed for testing purposes: prefer using timer if possible.
Create a standard Timer with an exponentially weighted moving average and an exponentially decaying histogram
time :: Timer IO -> IO a -> IO aSource
Execute an action and record statistics about the duration of the event and the rate of event occurrence.
module Data.Metrics.Types