hosc-0.1.1: Haskell Open Sound Control

Sound.OpenSoundControl.Time

Synopsis

Documentation

type UTC = DoubleSource

UTC time is represented as a real number.

utc :: IO UTCSource

Read current UTC timestamp.

type NTP = IntegerSource

NTP time is represented as an integer.

ntp :: IO NTPSource

Read current NTP timestamp.

ntpr_ntp :: Double -> NTPSource

Convert a real-valued NTP timestamp to an NTP timestamp.

utc_ntp :: UTC -> NTPSource

Convert UTC timestamp to NTP timestamp.