al_set_timer_speed(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

al_set_timer_speed(3) πŸŽ€

okay so bestie, this page lives in the Library Functions Manual, and it’s the Allegro 5 API page for al_set_timer_speed. Folding the manual name in right here so we don’t gotta copy the whole header line, periodt. πŸ’…


✨ NAME ✨

al_set_timer_speed β€” Allegro 5 API

🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

void al_set_timer_speed(ALLEGRO_TIMER *timer, double new_speed_secs)

πŸ’– DESCRIPTION πŸ’–

So this function sets the timer’s speed β€” like, the rate at which its counter will be incremented when it is started. Slay. ✨

You can do this when the timer is started or stopped, no big deal. 🫢

If the timer is currently running, it is made to look as though the speed change occurred precisely at the last tick. The way that’s so specific, I love it. 😭

And speed_secs has exactly the same meaning as with al_create_timer(3). iykyk. πŸ’œ

πŸ”₯ SEE ALSO πŸ”₯


πŸ’– cute little sign-off: this page is from the Allegro reference manual (that’s the source/version in the footer), and there’s no date printed on this page, so I’m not gonna invent one. Mwah. πŸ’‹πŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms