The Haskell 98 Library Report
top | back | next | contents

16  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 Library Report
top | back | next | contents
Sept 2002