al_set_timer_count

void al_set_timer_count(ALLEGRO_TIMER *timer, int64_t new_count)
Introduced in 5.0.0

Set the timer's counter value. The timer can be started or stopped. The count value may be positive or negative, but will always be incremented by +1 at each tick.

See also: al_get_timer_count, al_add_timer_count


Most helpful discussions: