timeit
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.TimeIt

Synopsis

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

timeItT :: IO a -> IO (Double, a) Source #

Wrap an IO computation so that it returns execution time in seconds, as well as the result value.