Wouldn't those operations reduce the accuracy of the time stamp?
constant_tsc has been a thing for more than a decade
> execute instructions out of order, and even speculatively execute
rdtscp serialises
> Not to mention that it'll have a dozen different clocks - which are not guaranteed to be in sync.
synchronised_tsc has been a think for about 6 years now
Generally, you can have consistency, speed, or low cost - but not more than two at the same time.
[https://community.intel.com/t5/Software-Tuning-Performance/H...]