过时便当

文章
5
资源
0
加入时间
3年1月15天

使用libevent实现简单定时器

功能:使用libevent实现简单定时器,每10s触发一次流程:代码://简单定时器#include <event2/event.h>#include <stdio.h>#include <time.h>#include <assert.h>#include <signal.h>class simple_timer final{public: virt