ringcore 0.1.0

A minimal async runtime built on Linux io_uring, designed to expose how Rust futures map to kernel I/O.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::time::{Duration, Instant};
use std::thread;

fn main() {
    let start = Instant::now();
    println!("Std Timer started: sleeping for 1 second...");
    thread::sleep(Duration::from_secs(1));
    println!("1 second passed at {:?}", start.elapsed());
    
    println!("Sleeping for 500ms...");
    thread::sleep(Duration::from_millis(500));
    println!("500ms passed. Done at {:?}", start.elapsed());
}