al_set_timer_speed(3)
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 π₯
al_get_timer_speed(3)β also on the menu, bestie π¦
π 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