| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
System.TimeIt
Synopsis
- timeIt :: IO a -> IO a
- timeItShow :: Show a => IO a -> IO a
- timeItNamed :: String -> IO a -> IO a
- timeItT :: IO a -> IO (Double, a)
Documentation
timeIt :: IO a -> IO a Source #
Wrap an IO computation so that it prints out the execution time.
Note: Use IO instead of MonadIO to avoid redundant import issues on some GHC installations/architectures.
timeItShow :: Show a => IO a -> IO a Source #
Like timeIt, but uses the show rendering of a as label for the
timing.
Since: 2.0
timeItNamed :: String -> IO a -> IO a Source #
Like timeIt, but uses the String as label for the timing.
Since: 2.0