1 2 3 4 5 6 7 8
use minstant::Instant; use std::sync::OnceLock; pub fn clock() -> f64 { static START: OnceLock<Instant> = OnceLock::new(); START.get_or_init(Instant::now).elapsed().as_secs_f64() }