SDL_SECONDS_TO_NS - Convert seconds to nanoseconds.
Contents
Availability
This macro is available since SDL 3.2.0.
Simple Directmedia Layer SDL 3.2.20 SDL_SECONDS_TO_NS(3)
Description
This only converts whole numbers, not fractional seconds.
Macro Parameters
S the number of seconds to convert.
Name
SDL_SECONDS_TO_NS - Convert seconds to nanoseconds.
Return Value
Returns S, expressed in nanoseconds.
Synopsis
#include<SDL3/SDL_timer.h>#defineSDL_SECONDS_TO_NS(S)(((Uint64)(S))*SDL_NS_PER_SECOND)
Thread Safety
It is safe to call this macro from any thread.
