Skip to main content

token_bucket/clock/
struct.rs

1use super::*;
2
3/// Monotonic nanosecond clock anchored at limiter creation time.
4#[derive(Clone, Copy, Debug)]
5pub struct MonotonicClock {
6    /// Monotonic origin timestamp captured at clock creation.
7    pub(crate) origin: Instant,
8}