Portability | GHC only |
---|---|
Maintainer | Simon Meier <iridcode@gmail.com> |
Safe Haskell | Safe-Infered |
A simple module for timing IO action.
- timed :: IO a -> IO (a, NominalDiffTime)
- timed_ :: IO a -> IO NominalDiffTime
Documentation
timed :: IO a -> IO (a, NominalDiffTime)Source
Execute an IO action and return its result plus the time it took to execute it.
timed_ :: IO a -> IO NominalDiffTimeSource
Execute an IO action and return the time it took to execute it.