1 #pragma once 2 3 #include <common/glib.h> 4 #include <driver/timers/HPET/HPET.h> 5 6 // 定义LONG_MAX为最大超时时间 - 允许负数 7 #define MAX_TIMEOUT (int64_t)((1ul << 63) - 1) 8 9 extern void rs_timer_init(); 10 extern int64_t rs_timer_get_first_expire(); 11 extern uint64_t rs_timer_next_n_ms_jiffies(uint64_t expire_ms); 12 extern int64_t rs_schedule_timeout(int64_t timeout); 13 14 extern uint64_t rs_clock();