1 2 3 4 5 6 7 8
use std::sync::LazyLock; use std::time::{Duration, Instant}; static INSTANT: LazyLock<Instant> = LazyLock::new(Instant::now); pub(crate) fn elapsed() -> Duration { INSTANT.elapsed() }