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
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms