| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
SDL3.Sys.Bindgen.TimerShims.Safe
Synopsis
- lithon_SDL_SECONDS_TO_NS :: Uint64 -> IO Uint64
- lithon_SDL_MS_TO_NS :: Uint64 -> IO Uint64
- lithon_SDL_US_TO_NS :: Uint64 -> IO Uint64
Documentation
lithon_SDL_SECONDS_TO_NS Source #
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 atsdl3-bindgen-sys/SDL_timer_shims.h 37:26
Since: 3.2.0
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 atsdl3-bindgen-sys/SDL_timer_shims.h 55:26
Since: 3.2.0
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 atsdl3-bindgen-sys/SDL_timer_shims.h 73:26
Since: 3.2.0