logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_SECONDS_TO_NS - Convert seconds to nanoseconds.

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.

See Also