Safe Haskell | Safe-Inferred |
---|
Clocked
Documentation
withTimer :: MonadCatchIO m => (Timer -> m a) -> m aSource
Run a monadic action with a Timer
.
waitTimer :: Timer -> Double -> IO ()Source
Waits the given amount of seconds minus the elapsed time
since the last call to waitTimer
(or the initialisation of the timer).
getTimeDouble :: IO DoubleSource
returns a monotonic time in seconds