SDL_MS_PER_SECOND(3)
okay bestie, pull up a chair because we're in the SDL3 FUNCTIONS section of the manual and today's main character is SDL_MS_PER_SECOND π it's a tiny one, but it's iconic, and we're gonna give it the respect it deserves.
π NAME π
SDL_MS_PER_SECOND β the number of milliseconds in a second. that's the whole job. she's not complicated, she's just correct.
β¨ SYNOPSIS β¨
#include <SDL3/SDL_timer.h>
#define SDL_MS_PER_SECOND 1000
π DESCRIPTION π
okay so here's the tea: this is always 1000.
that's it. that's the description. no vibes check needed, no edge cases, no "well actually it depends." a second is a thousand milliseconds, the macro says so, and the macro has never once been wrong. lowkey the most stable relationship in the entire codebase π«Ά
π¦ AVAILABILITY π¦
this macro has been serving since SDL 3.2.0. before that? not a thing. tragic, but we move on. π
and that's the page, bestie!! this little queen comes to you courtesy of Simple Directmedia Layer, version SDL 3.4.18, and she's filed under SDL_MS_PER_SECOND(3) in the manual. mwah, go forth and multiply by a thousand πβ¨
π¦ 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