How to keep a timer ticking between levels?

I’m imagining something where the timer is always updating a value in the game instance. Then after changing levels there is initialization logic where the widget/timer pulls the info from the gameinstance.