Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Time-related utilities.
Synopsis
- type ClockTime = UTCTime
- getClockTime :: IO ClockTime
- getCPUTime :: MonadIO m => m CPUTime
- measureTime :: MonadIO m => m a -> m (a, CPUTime)
- newtype CPUTime = CPUTime Integer
- fromMilliseconds :: Integer -> CPUTime
Documentation
getClockTime :: IO ClockTime Source #
The current time.
getCPUTime :: MonadIO m => m CPUTime Source #
measureTime :: MonadIO m => m a -> m (a, CPUTime) Source #
Measure the time of a computation. Of course, does not work with exceptions.
CPU time in pico (10^-12) seconds.
Instances
EncodeTCM CPUTime Source # | |
Pretty CPUTime Source # | Print CPU time in milli (10^-3) seconds. |
ToJSON CPUTime Source # | |
Defined in Agda.Interaction.JSONTop | |
Enum CPUTime Source # | |
Num CPUTime Source # | |
Integral CPUTime Source # | |
Defined in Agda.Utils.Time | |
Real CPUTime Source # | |
Defined in Agda.Utils.Time toRational :: CPUTime -> Rational # | |
Show CPUTime Source # | |
NFData CPUTime Source # | |
Defined in Agda.Utils.Time | |
Eq CPUTime Source # | |
Ord CPUTime Source # | |
fromMilliseconds :: Integer -> CPUTime Source #