clocked-0.4.1.3: timer functionality to clock IO commands

Safe HaskellNone
LanguageHaskell98

Clocked

Synopsis

Documentation

withTimer :: MonadCatchIO m => (Timer -> m a) -> m a Source

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 Double Source

returns a monotonic time in seconds