#[cfg(not(target_family = "wasm"))]
use std::time::Instant;
#[cfg(target_family = "wasm")]
use web_time::Instant;
pub trait Clock {
fn now(&self) -> Instant;
}
#[derive(Debug, Default, Clone)]
pub struct SystemClock {}
impl Clock for SystemClock {
fn now(&self) -> Instant {
Instant::now()
}
}