instrument-0.6.1.0: Easy stats/metrics instrumentation for Haskell programs
Copyright(c) 2009 2010 Bryan O'Sullivan
(c) 2012 Ozgun Ataman
LicenseBSD-style
Safe HaskellSafe-Inferred
LanguageHaskell2010

Instrument.Measurement

Description

 
Synopsis

Documentation

time :: MonadIO m => m a -> m (Double, a) Source #

Measure how long action took, in seconds along with its result

time_ :: MonadIO m => m a -> m Double Source #

Just measure how long action takes, discard its result

timeEx :: (MonadCatch m, MonadIO m) => m a -> m (Double, Either SomeException a) Source #

Measure how long action took, even if they fail