HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulesdl2-2.5.6.1Haskell2010

SDL.Time

Contents
  1. Time Measurement
  2. Timer
Synopsis
  • Packagesdl2-2.5.6.1
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceTime.hs

Time Measurement

Timer

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