al_add_timer_count(3)

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

🌸 NAME 🌸

Okay so bestie, welcome to the Library Functions Manual page for al_add_timer_count β€” aka Allegro 5 API realness. πŸ’…βœ¨


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro.h>

void al_add_timer_count(ALLEGRO_TIMER *timer, int64_t diff)

πŸ¦‹ DESCRIPTION πŸ¦‹

So what this icon does: it adds diff to the timer’s counter value. Literally just smooshes diff right into that counter. 🫢

This is similar to writing:

al_set_timer_count(timer, al_get_timer_count(timer) + diff);

…except that the addition is performed atomically, so no ticks will be lost. No cap, that part is the whole slay. πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’– source/version: Allegro reference manual Β· page: al_add_timer_count(3) Β· date: not printed on this page, so we’re not inventing one, fr fr βœ¨πŸŽ€

πŸ“¦ 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