Function performance_timing::const_cycle_loop [−][src]
pub fn const_cycle_loop(cycles: u64) -> u64
Expand description
Run function with known latency.
Assume both sub
& and
ops are single cycle on all architectures.
Might not behave as expected with another code running on the same
phisical core.
Returns final counter value. Useful for creating dep chains with known latency.