posix-realtime-0.0.0.2: POSIX Realtime functionality

Portabilitynon-portable (requires POSIX)
Stabilityprovisional
MaintainerWilliam N. Halchin (vigalchin@gmail.com)
Safe HaskellNone

System.Posix.Realtime.RTTime

Description

POSIX Realtime Timer and Clock support

Synopsis

Documentation

type TimerId = IntSource

data SetTimeFlag Source

Constructors

Timer_Abstime 

timerCreate :: ClockId -> Maybe Sigevent -> IO TimerIdSource

Create a realtime timer

timerDelete :: TimerId -> IO ()Source

Delete the timer designated by timerId.

timerSetTime :: TimerId -> SetTimeFlag -> ItimerSpec -> IO ItimerSpecSource

Set the current timer state

timerGetTime :: TimerId -> IO ItimerSpecSource

Get the current timer state

timerGetOverrun :: TimerId -> IO IntSource

Get the timer overrun count!

clockGetRes :: ClockId -> IO TimeSpecSource

Get clock resolution

clockGetTime :: ClockId -> IO TimeSpecSource

Get clock time

clockSetTime :: ClockId -> TimeSpec -> IO ()Source

Set clock time