User Activity

I would like to be able to use FW OTA with AlgoBuilds. Any direction you can provide would be greatly appreciated.
I would like to be able to create a timer that counts time elapsed during an activity and resets when the activity stops. Any suggestions on how to do this.