I am not an experinced c++ programmer. So I just want to know how to implement timer and timertask just like java has in C++. I have tried `timer_create` example that is in man page of timer\_create but It is not working as per my requirement.
I want that after particualar time span an event should fire, and if specific condition fulfills then timer should be canceled.

Any help would be highly appreciated.
Thanks,
Yuvi.