schedule-0.3.0.0: Pure deterministic scheduled computations

Safe HaskellNone
LanguageHaskell2010

Control.Clock.IO

Description

Implementations of Clock in the IO monad.

Synopsis

Documentation

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

Create a new clock with the given start tick and interval.

data Intv Source #

Constructors

Ps 
Ns 
Us 
Ms 
S 

interval :: Integer -> Intv -> DiffTime Source #

Convenience method for creating DiffTime for use with newClock.

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

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