I’d suggest decide how fast you want time to be going to have a class say game instance tick to a delay .5 for double speed… After each tick you add an int to int. For seconds.
After that a series of branches that look at the value of seconds. 60 is a “minute” 600 a hour etc.