3 ms·
What if the secondary counter overflows? And should all software now check two counters when they want to know the actual time? Just use a 64 bit integer, at l
by lucb1e 8y ago
What if the secondary counter overflows? And should all software now check two counters when they want to know the actual time?
Just use a 64 bit integer, at least for this purpose (since this apparently needs only 10ms precision): that is twice as large as a normal integer, so basically the same as using two counters, except you don't need extra logic in your code.