HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

ModuleAgda-2.7.0.1Haskell2010

Agda.Utils.Time

Time-related utilities.

  • 2 types
  • 4 values
  • PackageAgda-2.7.0.1
  • Exports6
  • LanguageHaskell2010
  • LicenceMIT
  • SourceTime.hs
valuemeasureTime :: MonadIO m => m a -> m (a, CPUTime)
#

Measure the time of a computation. Of course, does not work with exceptions.

newtypenewtype CPUTime
#

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

Constructors

Instances11Enum, Eq, Integral, Num, Ord, Real, …
  • Enum CPUTimeDefined in Agda-2.7.0.1 · Agda.Utils.Time
  • Eq CPUTimeDefined in Agda-2.7.0.1 · Agda.Utils.Time
  • Integral CPUTimeDefined in Agda-2.7.0.1 · Agda.Utils.Time
  • Num CPUTimeDefined in Agda-2.7.0.1 · Agda.Utils.Time
  • Ord CPUTimeDefined in Agda-2.7.0.1 · Agda.Utils.Time
  • Real CPUTimeDefined in Agda-2.7.0.1 · Agda.Utils.Time
  • Show CPUTimeDefined in Agda-2.7.0.1 · Agda.Utils.Time
  • NFData CPUTimeDefined in Agda-2.7.0.1 · Agda.Utils.Time
  • ToJSON CPUTimeDefined in Agda-2.7.0.1 · Agda.Interaction.JSONTop · orphan
  • Pretty CPUTimeDefined in Agda-2.7.0.1 · Agda.Utils.Time

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

  • EncodeTCM CPUTimeDefined in Agda-2.7.0.1 · Agda.Interaction.JSONTop · orphan