Safe Haskell | None |
---|---|
Language | Haskell2010 |
Benchmark related utils.
- getWallTime :: (MonadIO m, TimeUnit a) => m a
- getCpuTime :: (MonadIO m, TimeUnit a) => m a
- data ElapsedTime = ElapsedTime {}
- measureTime :: MonadIO m => m a -> m (ElapsedTime, a)
- measureTime_ :: MonadIO m => m a -> m ElapsedTime
- perSecond :: (Real a, Fractional b) => a -> TimeSpec -> b
Documentation
getWallTime :: (MonadIO m, TimeUnit a) => m a Source #
Get current wall-clock time as any time unit.
getCpuTime :: (MonadIO m, TimeUnit a) => m a Source #
Get current CPU time as any time unit.
data ElapsedTime Source #
Data type describing time passed during execution of something.
measureTime :: MonadIO m => m a -> m (ElapsedTime, a) Source #
Run given action and measure how much time it took.
measureTime_ :: MonadIO m => m a -> m ElapsedTime Source #
Run given action and measure how much time it took, discarding result of action.