1
2
3
4
5
6
7
8
9
10
11
12
pub mod host;
use cap_std::time::Duration;

pub trait HostWallClock: Send {
    fn resolution(&self) -> Duration;
    fn now(&self) -> Duration;
}

pub trait HostMonotonicClock: Send {
    fn resolution(&self) -> u64;
    fn now(&self) -> u64;
}