Does Windows provide a monotonically increasing clock to applications

后端 未结 1 1028
庸人自扰
庸人自扰 2021-01-17 12:23

This question is inspired by Does Linux provide a monotonically increasing clock to applications.

Maybe I should be more precise: I\'m looking for a clock function w

1条回答
  •  一个人的身影
    2021-01-17 13:05

    Yes, GetTickCount() does this. If you want a higher fidelity counter, QueryPerformanceCounter is also available. Neither of these counters depend on the time of day.

    0 讨论(0)
提交回复
热议问题