[−][src]Function amd64_timer::ticks_modern
pub fn ticks_modern() -> u64
The standard ticks
and ticks_amd
use the rdtsc
instruction which as it
maybe reordered in respect to other instructions the functions will contain
memory fences to attempt to insure relative order. But in some highly
sensitive benchmarks this may introduce memory overhead, as you enforce
cache consistency.
Please see these docs on the rdtscp
instruction.
Be aware that this instruction maybe masked by the OS, or Hypervisor.