Lines Matching refs:timer
10 `#include <timer.h>`
30 - 在测试框架中使用以下具体命令以运行`timer.h`对应测试用例
51 Timer timer("timer_test");
53 timer.Setup();
54 uint32_t timerId = timer.Register(func, 1000); // 定时一分钟响应回调,假设定时生效时间为0:00
59 timer.Unregister(timerId);
67 Timer timer("timer_test");
70 timer.Setup();
73 uint32_t timerId_1 = timer.Register(func1, 1000); // 定时一分钟循环响应回调
76 // 但因timer fd复用,与func2共用timerfd,后续时间响应也与func1相同,即为1:00, 2:00, 3:00, 4:00......
77 uint32_t timerId_2 = timer.Register(func2, 1000); // 定时一分钟循环响应回调,timerfd复用func1的timerfd
80 uint32_t timerId_3 = timer.Register(func2, 1001); // 定时一分钟循环响应回调,timerfd不复用func1的timerfd