HORIZON HASKELLDocslts/ghc-9.14.x3e2d5682026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 3e2d568 · 2026-10-11

Modulesdl2-2.5.6.1Haskell2010

SDL.Time

  • 3 types
  • 6 values
  • Packagesdl2-2.5.6.1
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceTime.hs

Time Measurement

2 declarations

Timer

7 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, …