I want to run a clock in the background of the app. How do i do it?

In this thread which is yours, is clear that background process is not possible then also you are creating same thread