As long as you save the start time to a table, you'll always be able display accurate elasped time.
Something like this will get you started:
https://mindgrader.com/tutorials/1-how-to-create-a-simple-javascript-countdown-timer
Else, google "javascript countdown clock" for more options.