Function retina_core::rte_rdtsc

source ·
pub unsafe fn rte_rdtsc() -> u64
Expand description

Reads the timestamp counter (TSC) register.

This is a low-overhead way to get CPU timing information, but may not be available on all platforms and could be imprecise. It should only be used to approximate cycle counts.

Remarks

This is unsafe because it calls the DPDK rte_rdtsc() function via FFI. Use at your own risk.