Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
OM.Time
Description
Basic missing time utilities.
Documentation
class Monad m => MonadTimeSpec m where Source #
A monad that can produce the current time as a TimeSpec.
Instances
MonadTimeSpec IO Source # | The IO instances uses |
(Monad (t m), MonadTimeSpec m, MonadTrans t) => MonadTimeSpec (t m) Source # | |
timed :: MonadTimeSpec m => m a -> m (a, DiffTime) Source #
Perform an action and measure how long it takes.