schedule-0.0: Schedule sub-computations to run later, in a pure way

Safe HaskellNone
LanguageHaskell2010

Control.Clock.System

Description

Implementation of a Clock based on the system monotonic clock.

Synopsis

Documentation

newClock :: IO (Clock IO) Source

Create a new clock ticking at 1 millisecond.

picosecondsToDiffTime :: Integer -> DiffTime

Create a DiffTime from a number of picoseconds.

newClockAt :: DiffTime -> IO (Clock IO) Source

Create a new clock ticking at a given rate.

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

Convert a system monotonic Clock into an abstract Clock for scheduled computations, ticking at the given rate.

The first argument is the length of each tick.