C++ How I made timers work when game paused

Yes it does work, but . . .

In my game I have resources like metal, wood, that are being collected every second. And they work using timers, and it’s obvious that they should be paused when game is paused. But when this class is used they collect resources even when game is paused, which is wrong.

Now I am thinking about writing own TimerManager that will allow to mark any single Timer as TickWhenPause = true, so I could controll which timers I want to tick when paused and which ones I dont want to.

Yes I am a newbie in UE4 and maybe there exist more correct solution, but I am not aware of it right now(((