HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

ModuleAgda-2.8.0.2Haskell2010

Agda.Utils.Time

Time-related utilities.

  • 2 types
  • 4 values
  • PackageAgda-2.8.0.2
  • 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.8.0.2 · Agda.Utils.Time
  • Eq CPUTimeDefined in Agda-2.8.0.2 · Agda.Utils.Time
  • Integral CPUTimeDefined in Agda-2.8.0.2 · Agda.Utils.Time
  • Num CPUTimeDefined in Agda-2.8.0.2 · Agda.Utils.Time
  • Ord CPUTimeDefined in Agda-2.8.0.2 · Agda.Utils.Time
  • Real CPUTimeDefined in Agda-2.8.0.2 · Agda.Utils.Time
  • Show CPUTimeDefined in Agda-2.8.0.2 · Agda.Utils.Time
  • NFData CPUTimeDefined in Agda-2.8.0.2 · Agda.Utils.Time
  • ToJSON CPUTimeDefined in Agda-2.8.0.2 · Agda.Interaction.JSONTop · orphan
  • Pretty CPUTimeDefined in Agda-2.8.0.2 · Agda.Utils.Time

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

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