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