How to get the "real" stream time for the most recently switched-to game for a stream?

Webhooks will provide this data

https://dev.twitch.tv/docs/api/webhooks-guide/

Or long poll the streams endpoint and collect this data accurate to one cache period of time