UserPreferences

LibraryDocumentation/CPUTime


CPUTime - Library Documentation

Part of the LibraryDocumentation project.

A standard Haskell 98 library for measuring elapsed CPU/Processor Time. In the hierarchical libraries this has become System.CPUTime. (Haddock)

cpuTimePrecision :: Integer

This is the precision of the result given by getCPUTime. This is the smallest measurable difference in CPU time that the implementation can record, and is given as an integral number of picoseconds.

In the hierarchical libraries, this has been moved to the module System.CPUTime. (Haddock)

getCPUTime :: IO Integer

Computation getCPUTime returns the number of picoseconds of CPU time used by the current program. The precision of this result is given by cpuTimePrecision.

> getCPUTime >>= \x -> print x
296875000000

In the hierarchical libraries, this has been moved to the module System.CPUTime. (Haddock)