Get time since world start

A TMap<SomeEnum, float> EventMap should hold the timecode for some event/signal, such that we can query the time that has passed.

What is the best way to get the current time since a world subsystem has started using C++? Ideally we would not make the subsystem tick its own time but query the engine with some static call. Additionally it would not include time when the game is paused. Is something like that possible?

We don’t need the day and year, just a float value to get the difference using something like:

// Register new entry with timecode
EventMap.Add(SomeEnum, CurrentTime());

// Some amount of time later
float ElapsedTime = CurrentTime() - EventMap.Get(SomeEnum);