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
- 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