You may want to include a sample to show what you’ve tried and what isn’t working.
Also, if you’re implementing timers, then this may help.