al_get_timer_speed(3)

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

🌸 NAME 🌸

al_get_timer_speed β€” Allegro 5 API

Okay bestie, this is al_get_timer_speed(3) from the Library Functions Manual, and it’s giving β€œtiny but important Allegro 5 API page.” No cap. πŸ’…


✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

double al_get_timer_speed(const ALLEGRO_TIMER *timer)

πŸ’– DESCRIPTION πŸ’–

So al_get_timer_speed literally returns the timer’s speed, in seconds. That’s the whole assignment. πŸŽ€

The value it gives you is the same value passed to al_create_timer(3) or al_set_timer_speed(3). Periodt. If you set the speed over there, this is how you peek at it over here. πŸ‘‘

You hand it a const ALLEGRO_TIMER *timer, and it gives you back a double. Iconic signature behavior, honestly. ✨


πŸ¦‹ SEE ALSO πŸ¦‹


Cute little sign-off: this page comes from the Allegro reference manual, and the footer is al_get_timer_speed(3) β€” the date isn’t listed on the page, so I’m not gonna invent one, bestie. πŸ«ΆπŸŽ€πŸ’€

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