clocked-0.4.1.2: timer functionality to clock IO commands

Safe HaskellNone

Clocked

Synopsis

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