0130 [ C++ ] Time tracking and diagnostics in game server cluster

Опубликовано: 09 Октябрь 2024
на канале: Rhymu's Videos
85
4

This is #130 in my series of live (Twitch) coding streams.

This stream I made some surprising observations on the behavior of QueryPerformanceCounter in Windows (frequency matches wall clock, somehow?) and decided to use the C++ standard library (chrono) for timekeeping, making a monotonic clock that tracks the system time with reasonably steady frequency. I also updated the diagnostic messaging system in my game to include timestamps on all messages.

Notebook page: https://tinyurl.com/y6ojlq9o

-- Watch live at   / rhymu8354