3 ms·
still possible to use rdtsc - you need to make sure that the thread has switched from executing on one CPU to another one, different packages have different co
by MichaelMoser123 9y ago
still possible to use rdtsc
- you need to make sure that the thread has switched from executing on one CPU to another one, different packages have different counters. (can do it by setting thread affinity)
- you need to see if CPU supports invariant TSC (cpuid reports TscInvariant = True )