Safe Haskell | None |
---|
Contains functions for composing units of time and signals that sample from the game clock.
- type Time = Double
- millisecond :: Time
- second :: Time
- minute :: Time
- hour :: Time
- inMilliseconds :: Time -> Double
- inSeconds :: Time -> Double
- inMinutes :: Time -> Double
- inHours :: Time -> Double
- fps :: Int -> Time
- running :: SignalGen (Signal Time)
- delta :: SignalGen (Signal Time)
- delay :: Time -> SignalGen (Signal Time)
Types
A type describing an amount of time in an arbitary unit. Use the time composing/converting functions to manipulate time values.
Composing
A time value representing one millisecond.
inMilliseconds :: Time -> DoubleSource
Converts a time value to a fractional value, in milliseconds.
Clock State
running :: SignalGen (Signal Time)Source
A signal that returns the time that the game has been running for when sampled.