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 which is strictly increasing, thus never returning the same value, independant how quick two calls follow each other.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With