Inline check_timers function