Rust in an Instant
May 02, 2020 – Reading time: 6 minutes. Tags: rustSo I tweeted: This happened in an instant. I am not even sorry. It included this snippet of Rust code: use std::os::raw::{c_int, c_void}; use std::sync::atomic::{AtomicU64, Ordering::SeqCst}; use std::time::Instant; #[repr(C)] struct timespec { tv_sec: u64, tv_nsec: u64, } static TIME_COUNTER: AtomicU64 = AtomicU64::new(0); #[no_mangle] extern “C” fn…
Read More