planet-mitchell-0.0.0: Planet Mitchell

Safe HaskellSafe
LanguageHaskell2010

Clock

Contents

Synopsis

Monotonic time

getMonotonicTime :: IO Double #

Return monotonic time in seconds, since some unspecified starting point

Since: base-4.11.0.0

getMonotonicTimeNSec :: IO Word64 #

Return monotonic time in nanoseconds, since some unspecified starting point

Since: base-4.11.0.0

CPU time

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.