retina_core

Function 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.