sdl3-bindgen-sys
Safe HaskellNone
LanguageGHC2021

SDL3.Sys.Bindgen.TimerShims.Safe

Synopsis

Documentation

lithon_SDL_SECONDS_TO_NS Source #

Arguments

:: Uint64
s
the number of seconds to convert.
-> IO Uint64 

Convert seconds to nanoseconds.

The SDL_SECONDS_TO_NS macro as a function. This only converts whole numbers, not fractional seconds.

Returns
s, expressed in nanoseconds.
Thread safety
It is safe to call this function from any thread.
C declaration
lithon_SDL_SECONDS_TO_NS, defined at sdl3-bindgen-sys/SDL_timer_shims.h 37:26

Since: 3.2.0

lithon_SDL_MS_TO_NS Source #

Arguments

:: Uint64
ms
the number of milliseconds to convert.
-> IO Uint64 

Convert milliseconds to nanoseconds.

The SDL_MS_TO_NS macro as a function. This only converts whole numbers, not fractional milliseconds.

Returns
ms, expressed in nanoseconds.
Thread safety
It is safe to call this function from any thread.
C declaration
lithon_SDL_MS_TO_NS, defined at sdl3-bindgen-sys/SDL_timer_shims.h 55:26

Since: 3.2.0

lithon_SDL_US_TO_NS Source #

Arguments

:: Uint64
us
the number of microseconds to convert.
-> IO Uint64 

Convert microseconds to nanoseconds.

The SDL_US_TO_NS macro as a function. This only converts whole numbers, not fractional microseconds.

Returns
us, expressed in nanoseconds.
Thread safety
It is safe to call this function from any thread.
C declaration
lithon_SDL_US_TO_NS, defined at sdl3-bindgen-sys/SDL_timer_shims.h 73:26

Since: 3.2.0