Copyright | (c) David Janin, 2016 |
---|---|
License | see the LICENSE file in the distribution |
Maintainer | janin@labri.fr |
Stability | experimental |
Safe Haskell | Safe |
Language | Haskell2010 |
- data TimeStamp d = TimeStamp {
- getTimeStamp :: !d
- timeStampDelta :: Num d => TimeStamp d -> TimeStamp d -> d
- shiftTimeStamp :: Num d => d -> TimeStamp d -> TimeStamp d
- data WakeUpOrder d
- wakeToTime :: WakeUpOrder d -> Maybe (TimeStamp d)
Documentation
Time stamps
TimeStamp | |
|
timeStampDelta :: Num d => TimeStamp d -> TimeStamp d -> d Source #
Computes the difference between two timestamps
data WakeUpOrder d Source #
Constant delay wake order
Eq d => Eq (WakeUpOrder d) Source # | Equality on wake up order |
Ord d => Ord (WakeUpOrder d) Source # | Total order on wake up order |
Show d => Show (WakeUpOrder d) Source # | |
wakeToTime :: WakeUpOrder d -> Maybe (TimeStamp d) Source #