posix-realtime-0.0.0.3: POSIX Realtime functionality

Copyright(c) The University of Glasgow 2002
LicenseBSD-style (see the file libraries/base/LICENSE)
MaintainerWilliam N. Halchin (vigalchin@gmail.com)
Stabilityprovisional
Portabilitynon-portable (requires POSIX)
Safe HaskellNone
LanguageHaskell98

System.Posix.Realtime.RTTime

Description

POSIX Realtime Timer and Clock support

Synopsis

Documentation

data SetTimeFlag Source

Constructors

Timer_Abstime 

timerCreate :: ClockId -> Maybe Sigevent -> IO TimerId Source

Create a realtime timer

timerDelete :: TimerId -> IO () Source

Delete the timer designated by "timerId".

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

Set the current timer state

timerGetTime :: TimerId -> IO ItimerSpec Source

Get the current timer state

timerGetOverrun :: TimerId -> IO Int Source

Get the timer overrun count!

clockGetRes :: ClockId -> IO TimeSpec Source

Get clock resolution

clockGetTime :: ClockId -> IO TimeSpec Source

Get clock time

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

Set clock time