al_start_timer(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ al_start_timer β€” Allegro 5 API ✨

okay bestie, welcome to the Allegro 5 API reference manual, and today's main character is al_start_timer πŸ’– she's a 3alleg5 girlie, obviously.


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro.h>

void al_start_timer(ALLEGRO_TIMER *timer)

🌸 DESCRIPTION 🌸

okay so. you hand her a timer β€” that's your ALLEGRO_TIMER *timer β€” and she starts it. that's it. that's the job. πŸ’…

from that moment on, the timer's counter starts incrementing at a constant rate, and it begins generating events. no cap. it's giving clock energy πŸ•°οΈβœ¨

now the little edge cases, because details are everything:

  • starting a timer that is already started does nothing. like, she's already doing it, she's not gonna do it twice. πŸ™ˆ
  • starting a timer that was stopped will reset the timer's counter, which effectively restarts the timer from the beginning. fresh start, clean slate, new era πŸ¦‹

πŸ‘€ SEE ALSO πŸ‘€


and that's the whole vibe, bestie 🫢 this little love letter comes to you straight from the Allegro reference manual, page al_start_timer(3alleg5) β€” periodt. πŸ’œ

πŸ“¦ where this page comes from