ALLEGRO_MSECS_TO_SECS(3alleg5)
β¨ ALLEGRO_MSECS_TO_SECS β¨
okay bestie, welcome to the Allegro 5 API reference manual, section 3alleg5 π this one's a lil baby page but it's lowkey iconic so let's go π¦
πΈ NAME πΈ
ALLEGRO_MSECS_TO_SECS β the Allegro 5 API macro that does exactly what it says on the tin π
π SYNOPSIS π
#include <allegro5/allegro.h>
#define ALLEGRO_MSECS_TO_SECS(x) ((x) / 1000.0)
like. she's a one-liner. she's a #define. she ate and left no crumbs π
π DESCRIPTION π
bestie, this macro converts milliseconds to seconds. that's it. that's the whole vibe β¨
you hand her x in msecs, she hands you back the same amount of time measured in seconds, and she does it by dividing by 1000.0 β note the .0 because she is a floating point girlie and she is NOT about that integer division life π
no cap: the definition literally lives in the header, so it's the preprocessor doing the work, not some fancy runtime function. slay π«Ά
Allegro reference manual π mwah, that's a wrap β go forth and convert your milliseconds, my gorgeous little time-lord π§β¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms