Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Time t
- module Data.TimeVal
- timeVal :: Time t -> TimeVal t
- freezed :: a
- protect :: TimeVal t -> TimeVal t
- type Seconds = Double
- timeIO :: IO a -> IO (Time Seconds, a)
- waitTill :: Seconds -> IO ()
- currentTime :: IO Seconds
- timeOrigin :: ((?birthTime :: Seconds) => IO a) -> IO a
- ms :: Seconds -> Seconds
- mus :: Seconds -> Seconds
- ns :: Seconds -> Seconds
- minutes :: Seconds -> Seconds
- hours :: Seconds -> Seconds
- days :: Seconds -> Seconds
Unambiguous times
A type wrappers for timestamps that can be compared unambiguously
Unit Time Source # | |
Bounded (Time t) Source # | |
Ord t => Eq (Time t) Source # | |
Ord t => Ord (Time t) Source # | |
Show t => Show (Time t) Source # | |
Ord t => Ring (Time t) Source # | |
Ord t => Semiring (Time t) Source # | The Time ring where |
Ord t => Monoid (Time t) Source # | The Time monoid where |
Ord t => Semigroup (Time t) Source # | The Time semigroup where |
module Data.TimeVal
Time utilities
timeIO :: IO a -> IO (Time Seconds, a) Source #
Constructs a Time/value pair representing the delayed computation of the argument.
currentTime :: IO Seconds Source #