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_NS_TO_SECONDS - Convert nanoseconds to seconds.

Availability

       This macro is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                               SDL_NS_TO_SECONDS(3)

Description

       This  performs  a  division, so the results can be dramatically different if NS is an integer or floating
       point value.

Macro Parameters

NS     the number of nanoseconds to convert.

Name

       SDL_NS_TO_SECONDS - Convert nanoseconds to seconds.

Return Value

       Returns NS, expressed in seconds.

Synopsis

#include<SDL3/SDL_timer.h>#defineSDL_NS_TO_SECONDS(NS)((NS)/SDL_NS_PER_SECOND)

Thread Safety

       It is safe to call this macro from any thread.

See Also