Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
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.
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.