muffy 0.3.12

The static website validator
Documentation
use super::Timer;
use tokio::time::Instant;

pub struct StubTimer {
    instant: Instant,
}

impl StubTimer {
    pub fn new() -> Self {
        Self {
            instant: Instant::now(),
        }
    }
}

impl Timer for StubTimer {
    fn now(&self) -> Instant {
        self.instant
    }
}