Number of milliseconds since library initialization.
See SDL_GetTicks for C documentation.
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulesdl2-2.5.5.0Haskell2010
Number of milliseconds since library initialization.
See SDL_GetTicks for C documentation.
The current time in seconds since some arbitrary starting point (consist over the life of the application).
This time is derived from the system's performance counter - see SDL_GetPerformanceFrequency and SDL_GetPerformanceCounter for C documentation about the implementation.
Wait a specified number of milliseconds before returning.
Users are generally recommended to use threadDelay instead, to take advantage of the abilities of the Haskell runtime.
See SDL_Delay for C documentation.
A TimerCallback is called with the interval size of the callback. It can return information as to whether or not the timer should continue to exist.
A timer created by addTimer. This Timer can be removed with removeTimer.
RetriggerTimer allows a callback to inform SDL if the timer should be retriggered or cancelled
Reschedule Word32Retrigger the timer again in a given number of milliseconds.
CancelCancel future invocations of this timer.
Eq RetriggerTimerDefined in sdl2-2.5.5.0 · SDL.TimeData RetriggerTimerDefined in sdl2-2.5.5.0 · SDL.TimeOrd RetriggerTimerDefined in sdl2-2.5.5.0 · SDL.TimeRead RetriggerTimerDefined in sdl2-2.5.5.0 · SDL.TimeShow RetriggerTimerDefined in sdl2-2.5.5.0 · SDL.TimeGeneric RetriggerTimerDefined in sdl2-2.5.5.0 · SDL.Timetype Rep RetriggerTimer = D1 ('MetaData "RetriggerTimer"
"SDL.Time"
"sdl2-2.5.5.0-3sH3mgPhw4837qWuaPOiH"
'False) (C1 ('MetaCons "Reschedule"
'PrefixI 'False) (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32)) :+: C1 ('MetaCons "Cancel"
'PrefixI 'False) U1)Defined in sdl2-2.5.5.0 · SDL.TimeSet up a callback function to be run on a separate thread after the specified number of milliseconds has elapsed.
See SDL_AddTimer for C documentation.
Remove a Timer.
See SDL_RemoveTimer for C documentation.