Skip to main content

dope_runtime/executor/drive/
regress.rs

1use std::time;
2
3#[derive(Eq, PartialEq, Debug)]
4pub struct Regression {
5    requested: time::Instant,
6    current: time::Instant,
7}
8
9impl Regression {
10    pub(super) const fn new(ask: time::Instant, current: time::Instant) -> Self {
11        Self {
12            requested: ask,
13            current,
14        }
15    }
16
17    pub const fn requested(&self) -> time::Instant {
18        self.requested
19    }
20
21    pub const fn current(&self) -> time::Instant {
22        self.current
23    }
24}