The issue with the timer resetting based on table focus has come up many times. There are some ways to workaround the issue as @Mike_Gleeson posted here.
I’m not sure what your ultimate goal is with the activity, but I saw this activity posted to Twitter a while back that might work for you.