code change for the timer(base on libevent): ev_timer.h