al_set_timer_speed(3alleg5)
π al_set_timer_speed β Allegro 5 API π
okay bestie, welcome to the Allegro reference manual, the al_set_timer_speed(3alleg5) page specifically, and honestly? it's giving short and iconic. let's go π
β¨ NAME β¨
al_set_timer_speed β literally the Allegro 5 API function that changes how fast your timer ticks π
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_set_timer_speed(ALLEGRO_TIMER *timer, double new_speed_secs)
β¨ DESCRIPTION β¨
so what this does is set the timer's speed, meaning the rate at which its counter gets incremented once it's been started. that's the whole vibe π
and the good news? you can do this whether the timer is started or stopped. no waiting around, no drama.
but here's the tea π« β if the timer is currently running, the change is made to look as though the speed change happened precisely at the last tick. so it's not all glitchy and mid-tick, it's clean. slay.
also, speed_secs has exactly the same meaning as it does with al_create_timer(3alleg5). same energy, same rules, no cap β¨
β¨ SEE ALSO β¨
al_get_timer_speed(3alleg5)β the reverse queen, go check her out π¦
and that's the whole page, bestie! this lil cutie came straight from the Allegro reference manual β al_set_timer_speed(3alleg5), that's the source and the page name right there. go forth and time things ππΈπ«Ά
π¦ 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