Hi, anirudh
For your question, my personal idea is that I think you can utilize the creation of a new thread method to realize the timer, after the system initial then start a thread, in this thread, using the code to write a Timer object, and implement execute for each XX ms.
wish to help you