Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
DiffTime
This is a length of time, as measured by a clock.
Conversion functions such as fromInteger
and realToFrac
will treat it as seconds.
For example, (0.010 :: DiffTime)
corresponds to 10 milliseconds.
It has a precision of one picosecond (= 10^-12 s). Enumeration functions will treat it as picoseconds.
Instances
Compact timestamp
timestampMicrosecondsLow32Bits ∷ Time → Word32 Source #
This is a slightly peculiar operation: it returns the number of microseconds since an arbitrary epoch, modulo 2^32. This number of microseconds wraps every ~35 minutes.
The purpose is to give a compact timestamp (compact to send over the wire) for measuring time differences on the order of seconds or less.