ringfire 0.5.2

Zero-copy lock-free inter-process communication (IPC) ring buffer and shared memory bus in Rust, with ring mirroring across hosts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::*;

#[test]
fn test_cycle_stamp_progress() {
    let t1 = CycleStamp::now();
    for _ in 0..1000 {
        core::hint::spin_loop();
    }
    let t2 = CycleStamp::now();
    assert!(t2.tsc >= t1.tsc);
    assert!(t2.diff_cycles(&t1) > 0);
}