Agda-2.6.3.20230930: A dependently typed functional programming language and proof assistant
Safe HaskellSafe-Inferred
LanguageHaskell2010

Agda.Utils.Time

Description

Time-related utilities.

Synopsis

Documentation

type ClockTime = UTCTime Source #

Timestamps.

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.

newtype CPUTime Source #

CPU time in pico (10^-12) seconds.

Constructors

CPUTime Integer 

Instances

Instances details
EncodeTCM CPUTime Source # 
Instance details

Defined in Agda.Interaction.JSONTop

Pretty CPUTime Source #

Print CPU time in milli (10^-3) seconds.

Instance details

Defined in Agda.Utils.Time

Enum CPUTime Source # 
Instance details

Defined in Agda.Utils.Time

Num CPUTime Source # 
Instance details

Defined in Agda.Utils.Time

Integral CPUTime Source # 
Instance details

Defined in Agda.Utils.Time

Real CPUTime Source # 
Instance details

Defined in Agda.Utils.Time

Methods

toRational :: CPUTime -> Rational

Show CPUTime Source # 
Instance details

Defined in Agda.Utils.Time

Methods

showsPrec :: Int -> CPUTime -> ShowS

show :: CPUTime -> String

showList :: [CPUTime] -> ShowS

NFData CPUTime Source # 
Instance details

Defined in Agda.Utils.Time

Methods

rnf :: CPUTime -> ()

Eq CPUTime Source # 
Instance details

Defined in Agda.Utils.Time

Methods

(==) :: CPUTime -> CPUTime -> Bool

(/=) :: CPUTime -> CPUTime -> Bool

Ord CPUTime Source # 
Instance details

Defined in Agda.Utils.Time

Methods

compare :: CPUTime -> CPUTime -> Ordering

(<) :: CPUTime -> CPUTime -> Bool

(<=) :: CPUTime -> CPUTime -> Bool

(>) :: CPUTime -> CPUTime -> Bool

(>=) :: CPUTime -> CPUTime -> Bool

max :: CPUTime -> CPUTime -> CPUTime

min :: CPUTime -> CPUTime -> CPUTime

ToJSON CPUTime Source # 
Instance details

Defined in Agda.Interaction.JSONTop