System.CPUTime

base-4.6.0.1: Basic libraries

Portability | portable
Stability | provisional
Maintainer | libraries@haskell.org
Safe Haskell | Trustworthy

System.CPUTime

Description

The standard CPUTime library.

Synopsis

- getCPUTime :: IO Integer
- cpuTimePrecision :: Integer

# Documentation

getCPUTime :: IO Integer

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

cpuTimePrecision :: Integer

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.