brief timer common library

brief timer common library. based on libevent's timer.