Safe Haskell | None |
---|---|
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.
CPUTime Integer |
Instances
EncodeTCM CPUTime Source # | |
Pretty CPUTime Source # | Print CPU time in milli (10^-3) seconds. |
NFData CPUTime Source # | |
Defined in Agda.Utils.Time | |
Enum CPUTime Source # | |
Defined in Agda.Utils.Time | |
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 # | |
Eq CPUTime Source # | |
Ord CPUTime Source # | |
ToJSON CPUTime Source # | |
Defined in Agda.Interaction.JSONTop |
fromMilliseconds :: Integer -> CPUTime Source #