Function safe_arch::read_timestamp_counter_p
source · pub fn read_timestamp_counter_p(aux: &mut u32) -> u64
Expand description
Reads the CPU’s timestamp counter value and store the processor signature.
This works similar to read_timestamp_counter
with two main
differences:
- It and also stores the
IA32_TSC_AUX MSR
value to the reference given. - It waits on all previous instructions to finish before reading the timestamp (though it doesn’t prevent other instructions from starting).
As with read_timestamp_counter
, you can’t actually use this to tell the
time.
- Intrinsic:
__rdtscp
- Assembly:
rdtscp