Safe Haskell | None |
---|---|
Language | Haskell2010 |
Control.Clock.IO
Synopsis
- newClock :: Tick -> DiffTime -> IO (Clock IO)
- newClock' :: DiffTime -> IO (Clock IO)
- data Intv
- interval :: Integer -> Intv -> DiffTime
- convClock :: Tick -> DiffTime -> Clock -> Clock IO
- clockWithIO :: Clock IO -> IO a -> IO (Clocked IO a)
- clockTimerIO :: Clock IO -> TickDelta -> IO a -> IO (Either Tick a)
- voidInput :: IO Void
- module Control.Clock
Documentation
newClock :: Tick -> DiffTime -> IO (Clock IO) Source #
Create a new clock with the given start tick and interval.
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.
module Control.Clock