SDL_US_PER_SECOND(3)

πŸ’– SDL_US_PER_SECOND πŸ’–

okay bestie, gather round, because today we're talking about SDL_US_PER_SECOND from the SDL3 functions girlies ✨ (that's SDL_US_PER_SECOND(3) if you're being formal, which like, we're not) πŸŽ€


✨ NAME ✨

SDL_US_PER_SECOND β€” literally just the number of microseconds in a second πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_timer.h>

#define SDL_US_PER_SECOND   1000000

like yes, that's the whole thing, no cap 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

This is always 1000000.

periodt. that's it. that's the description. the way that this macro has one job and does it flawlessly?? iconic behavior honestly πŸ‘‘


⭐ AVAILABILITY ⭐

This macro has been available since SDL 3.2.0. so if you're on anything older... girl, upgrade 😭


fr fr, one million microseconds = one second, and SDL said "we're not making you do that math in your head" and honestly? we love that for us πŸ’–

that's the whole page bestie, short and sweet, main character energy only 🌈

this lil cutie lives in Simple Directmedia Layer, version SDL 3.4.18, page SDL_US_PER_SECOND(3) πŸŽ€ mwah, go write some timers πŸ’œ

πŸ“¦ where this page comes from