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