| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.TimerShims.FunPtr
Synopsis
- lithon_SDL_SECONDS_TO_NS :: FunPtr (Uint64 -> IO Uint64)
- lithon_SDL_MS_TO_NS :: FunPtr (Uint64 -> IO Uint64)
- lithon_SDL_US_TO_NS :: FunPtr (Uint64 -> IO Uint64)
Documentation
lithon_SDL_SECONDS_TO_NS :: FunPtr (Uint64 -> IO Uint64) Source #
Convert seconds to nanoseconds.
The SDL_SECONDS_TO_NS macro as a function. This only converts whole numbers, not fractional seconds.
s- the number of seconds to convert.
- 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 atsdl3-bindgen-sys/SDL_timer_shims.h 37:26
Since: 3.2.0
lithon_SDL_MS_TO_NS :: FunPtr (Uint64 -> IO Uint64) Source #
Convert milliseconds to nanoseconds.
The SDL_MS_TO_NS macro as a function. This only converts whole numbers, not fractional milliseconds.
ms- the number of milliseconds to convert.
- 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 atsdl3-bindgen-sys/SDL_timer_shims.h 55:26
Since: 3.2.0
lithon_SDL_US_TO_NS :: FunPtr (Uint64 -> IO Uint64) Source #
Convert microseconds to nanoseconds.
The SDL_US_TO_NS macro as a function. This only converts whole numbers, not fractional microseconds.
us- the number of microseconds to convert.
- 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 atsdl3-bindgen-sys/SDL_timer_shims.h 73:26
Since: 3.2.0