On 10 September 2012 19:34, Szabó Antal <szabo.antal.92@xxxxxxxxx> wrote: > As I promised, here's code for rdtsc on x86-32: Neat :) though I'm on x86-64. > Note: some of these have the pitfalls Mike mentioned, namely the > "unsynchronized cores" one. Thanks. For my app I reckon I can get away with using CPU affinity to avoid the synchronization problem.