| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
System.Clock.Seconds
Documentation
Clock types. A clock may be system-wide (that is, visible to all processes)
or per-process (measuring time that is meaningful only within a process).
All implementations shall support Realtime.
Constructors
| Monotonic | The identifier for the system-wide monotonic clock, which is defined as
a clock measuring real time, whose value cannot be set via
|
| Realtime | The identifier of the system-wide clock measuring real time. For this
clock, the value returned by |
| ProcessCPUTime | The identifier of the CPU-time clock associated with the calling
process. For this clock, the value returned by |
| ThreadCPUTime | The identifier of the CPU-time clock associated with the calling OS
thread. For this clock, the value returned by |
| MonotonicRaw | (since Linux 2.6.28, macOS 10.12)
Similar to |
| Boottime | (since Linux 2.6.39; Linux-specific)
Identical to |
| MonotonicCoarse | (since Linux 2.6.32; Linux-specific)
A faster but less precise version of |
| RealtimeCoarse | (since Linux 2.6.32; Linux-specific)
A faster but less precise version of |
Instances
Constructors
| Seconds | |
Fields | |
Instances
| Bounded Seconds Source # | |||||
| Enum Seconds Source # | |||||
Defined in System.Clock.Seconds Methods succ :: Seconds -> Seconds Source # pred :: Seconds -> Seconds Source # toEnum :: Int -> Seconds Source # fromEnum :: Seconds -> Int Source # enumFrom :: Seconds -> [Seconds] Source # enumFromThen :: Seconds -> Seconds -> [Seconds] Source # enumFromTo :: Seconds -> Seconds -> [Seconds] Source # enumFromThenTo :: Seconds -> Seconds -> Seconds -> [Seconds] Source # | |||||
| Storable Seconds Source # | |||||
Defined in System.Clock.Seconds Methods sizeOf :: Seconds -> Int Source # alignment :: Seconds -> Int Source # peekElemOff :: Ptr Seconds -> Int -> IO Seconds Source # pokeElemOff :: Ptr Seconds -> Int -> Seconds -> IO () Source # peekByteOff :: Ptr b -> Int -> IO Seconds Source # pokeByteOff :: Ptr b -> Int -> Seconds -> IO () Source # | |||||
| Generic Seconds Source # | |||||
Defined in System.Clock.Seconds Associated Types
| |||||
| Num Seconds Source # | |||||
Defined in System.Clock.Seconds | |||||
| Read Seconds Source # | |||||
| Fractional Seconds Source # | |||||
| Real Seconds Source # | |||||
Defined in System.Clock.Seconds Methods toRational :: Seconds -> Rational Source # | |||||
| RealFrac Seconds Source # | |||||
| Show Seconds Source # | |||||
| Eq Seconds Source # | |||||
| Ord Seconds Source # | |||||
Defined in System.Clock.Seconds | |||||
| type Rep Seconds Source # | |||||
Defined in System.Clock.Seconds | |||||
getTime :: Clock -> IO Seconds Source #
The getTime function shall return the current value for the
specified clock.
getRes :: Clock -> IO Seconds Source #
The getRes function shall return the resolution of any clock.
Clock resolutions are implementation-defined and cannot be set
by a process.
fromNanoSecs :: Integer -> Seconds Source #
Seconds from nano seconds.
toNanoSecs :: Seconds -> Integer Source #
Seconds to nano seconds.