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.
Instances
Enum CPUTime Source # | |
Eq CPUTime Source # | |
Integral CPUTime Source # | |
Defined in Agda.Utils.Time | |
Num CPUTime Source # | |
Ord CPUTime Source # | |
Real CPUTime Source # | |
Defined in Agda.Utils.Time toRational :: CPUTime -> Rational # | |
Show CPUTime Source # | |
Pretty CPUTime Source # | Print CPU time in milli (10^-3) seconds. |
ToJSON CPUTime | |
Defined in Agda.Interaction.JSONTop toEncoding :: CPUTime -> Encoding toJSONList :: [CPUTime] -> Value toEncodingList :: [CPUTime] -> Encoding | |
EncodeTCM CPUTime Source # | |
fromMilliseconds :: Integer -> CPUTime Source #