HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulesdl2-2.5.5.0Haskell2010

SDL.Time

  • 3 types
  • 5 values
  • Packagesdl2-2.5.5.0
  • Exports8
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceTime.hs

Time Measurement

2 declarations

Timer

6 declarations
valuedelay :: MonadIO m => Word32 -> m ()
#

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.

datadata RetriggerTimer
#

RetriggerTimer allows a callback to inform SDL if the timer should be retriggered or cancelled

Constructors

  • Reschedule Word32

    Retrigger the timer again in a given number of milliseconds.

  • Cancel

    Cancel future invocations of this timer.

Instances7Eq, Data, Ord, Read, Show, Generic, …