1
//! Standard-library time functionality..
2

            
3
// If we've forbidden `now` elsewhere in our project, we enable it here.
4
// (And only here!)
5
#![allow(clippy::disallowed_methods)]
6

            
7
pub use std::time::Instant;
8

            
9
use std::time::SystemTime;
10

            
11
impl crate::SystemTimeExt for SystemTime {
12
1069914
    fn get() -> SystemTime {
13
1069914
        SystemTime::now()
14
1069914
    }
15
}
16

            
17
impl crate::InstantExt for Instant {
18
1949181
    fn get() -> crate::Instant {
19
1949181
        Instant::now()
20
1949181
    }
21
}