Convert seconds to nanoseconds.
Defined in <SDL3/SDL_timer.h>
#define SDL_SECONDS_TO_NS(S) (((Uint64)(S)) * SDL_NS_PER_SECOND)
S | the number of seconds to convert. |
Returns S, expressed in nanoseconds.
This only converts whole numbers, not fractional seconds.
It is safe to call this macro from any thread.
This macro is available since SDL 3.1.3.