timeit-2.0: Time monadic computations with an IO base.
System.TimeIt
Synopsis
timeIt :: MonadIO m => m a -> m a Source #
Wrap a MonadIO computation so that it prints out the execution time.
MonadIO
timeItShow :: (MonadIO m, Show a) => m a -> m a Source #
Like timeIt, but uses the show rendering of a as label for the timing.
timeIt
show
a
Since: 2.0
timeItNamed :: MonadIO m => String -> m a -> m a Source #
Like timeIt, but uses the String as label for the timing.
String
timeItT :: MonadIO m => m a -> m (Double, a) Source #
Wrap a MonadIO computation so that it returns execution time in seconds, as well as the result value.