redux/
service.rs

1use crate::Instant;
2
3pub trait Service: TimeService {}
4
5/// Time service.
6pub trait TimeService {
7    fn monotonic_time(&mut self) -> Instant {
8        Instant::now()
9    }
10}