-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | low-level binding to time.h: clock_gettime and clock_getres -- -- low-level binding to time.h: clock_gettime and clock_getres. -- clock_settime will be added in later versions. @package clock @version 0.1.1 -- | From time.h, provides clockid_t, timespec, clock_gettime, -- clock_getres. module System.CPUTime.Clock -- | Clock types data Clock -- | Clock that cannot be set and represents monotonic time since some -- unspecified starting point. Monotonic :: Clock -- | System-wide realtime clock Realtime :: Clock -- | High-resolution per-process timer from the CPU. ProcessTime :: Clock -- | Thread-specific CPU-time clock. ThreadTime :: Clock -- | TimeSpec structure data TimeSpec Time :: Int -> Int -> TimeSpec -- | Retrieves the time of the specified clock. clock_gettime :: Clock -> IO TimeSpec -- | Finds the resolution (precision) of the specified clock. clock_getres :: Clock -> IO TimeSpec -- | Seconds of a TimeSpec sec :: TimeSpec -> Int -- | Nanoseconds of a TimeSpec nsec :: TimeSpec -> Int instance Show TimeSpec instance Read TimeSpec