The Haskell 98 Report
top | back | next | contents | function index

26  CPU Time


module CPUTime ( getCPUTime, cpuTimePrecision ) where

getCPUTime        :: IO Integer
cpuTimePrecision  :: 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. This is the smallest measurable difference in CPU time that the implementation can record, and is given as an integral number of picoseconds.


The Haskell 98 Report
top | back | next | contents | function index
December 2002