Timers to measure latency

后端 未结 3 1770
-上瘾入骨i
-上瘾入骨i 2021-01-06 04:03

When measuring network latency (time ack received - time msg sent) in any protocol over TCP, what timer would you recommend to use and why? What resolution does it have? Wha

3条回答
  •  别那么骄傲
    2021-01-06 04:32

    You mentioned that you use GetTickCount(), so I'm going to recommend that you take a look at QueryPerformanceCounter().

提交回复
热议问题