Is there any way to read out the timestamp-counter on x86 CPUs in Python?
I know that using rdtscp
is bad and using rdtsc
is even worse. But trust me I really need that value, or at least some approximation of that value.
Any ideas?
Is there any way to read out the timestamp-counter on x86 CPUs in Python?
I know that using rdtscp
is bad and using rdtsc
is even worse. But trust me I really need that value, or at least some approximation of that value.
Any ideas?
With normal python, time.clock() is the most accurate thing you will get.
If you really want to have processor ticks, just remember the time which is needed to execute this python call - so Python is not the right language to do microsecond time measurement.