Copyright | (c) 2009 2010 Bryan O'Sullivan (c) 2012 Ozgun Ataman |
---|---|
License | BSD-style |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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