Reputation: 137
I am working on some Linux applications that uses timers.I need to change the timer interval during runtime.So is there any API that could detect whether any previous timer is running or not.My idea is like i will detect any previous running timer and will delete it and then will re-create the timer with new time value.
I am using timer_create(),timer_settime() for timer creation and timer starting.
Thanks&Regards Amit Kumar
Upvotes: 0
Views: 162
Reputation: 1229
(If the timer was already armed, then the previous settings are overwritten.)
Seems like the function already does what you are looking for.
Upvotes: 2