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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulebase-4.23.0.0Haskell2010

System.CPUTime

The standard CPUTime library.

  • 2 values
  • Packagebase-4.23.0.0
  • Exports2
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCPUTime.hsc
valuegetCPUTime :: IO Integer
#

Computation getCPUTime returns the number of picoseconds CPU time used by the current program. The precision of this result is implementation-dependent.

The cpuTimePrecision constant is the smallest measurable difference in CPU time that the implementation can record, and is given as an integral number of picoseconds.