schedule-0.2.0.0: Pure deterministic scheduled computations

Safe HaskellNone
LanguageHaskell2010

Control.Clock.IO

Description

Implementations of Clock in the IO monad.

Synopsis

Documentation

newClock :: DiffTime -> IO (Clock IO) Source #

Create a new clock ticking at a given interval.

newClockPico :: Integer -> IO (Clock IO) Source #

Create a new clock ticking at a given interval in picoseconds.

newClockMilli :: Integer -> IO (Clock IO) Source #

Create a new clock ticking at a given interval in milliseconds.

newClock1ms :: IO (Clock IO) Source #

Create a new clock ticking at 1 millisecond.

newClock1s :: IO (Clock IO) Source #

Create a new clock ticking at 1 second.

convClock :: DiffTime -> Clock -> Clock IO Source #

Convert a System.Time.Monotonic.Clock into an abstract Clock for scheduled computations, ticking at the given interval.