HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulererebase-1.21.2Haskell2010

System.CPUTime

  • 2 values
  • Packagererebase-1.21.2
  • Exports2
  • LanguageHaskell2010
  • LicenceMIT
  • SourceCPUTime.hsc

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.

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.