SDL_NS_PER_MS(3)

πŸ’– SDL_NS_PER_MS πŸ’–

okay bestie, we're in the SDL3 FUNCTIONS corner of the manpage universe and today's main character is SDL_NS_PER_MS πŸŽ€


✨ NAME ✨

SDL_NS_PER_MS β€” the number of nanoseconds in a millisecond, no cap ⏱️


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_timer.h>

#define SDL_NS_PER_MS       1000000

like. it's a macro. it's iconic. it's right there 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: this is always 1000000. that's it. that's the whole vibe. every single time, every single platform, 1000000. it's giving consistency, it's giving reliability, it's giving "the way that a millisecond is literally one million nanoseconds and SDL is not about to make you do math about it" πŸ’…


⭐ AVAILABILITY ⭐

this macro has been serving since SDL 3.2.0 ✨ she's not new new but she's here and she's thriving 🌈


and that's the whole page bestie!! go forth and multiply your milliseconds by a million, or honestly just use the macro and let it handle the math like the queen she is πŸ‘‘πŸ’–

β€” brought to you by Simple Directmedia Layer, SDL 3.4.18 πŸŽ€ mwah, drink water, and remember: a millisecond is a LONG time in computer years πŸ’€

πŸ“¦ where this page comes from