http://blog.sina.com.cn/s/blog_4178c837010002dw.html void time_cb(int fd, short event, void *arg) { struct timeval tv; struct event *ev = NULL; // add your code here fprintf(stderr, "Hello, evtimer\n"); ev = malloc(sizeof(struct event)); tv.tv_sec = 0;