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_US_TO_NS - Convert microseconds to nanoseconds.

Availability

       This macro is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                                    SDL_US_TO_NS(3)

Description

       This only converts whole numbers, not fractional microseconds.

Header File

       Defined in SDL3/SDL_timer.h

Name

       SDL_US_TO_NS - Convert microseconds to nanoseconds.

Return Value

       Returns US, expressed in nanoseconds.

Synopsis

#include"SDL3/SDL.h"#defineSDL_US_TO_NS(US)(((Uint64)(US))*SDL_NS_PER_US)

Thread Safety

       It is safe to call this macro from any thread.

See Also