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
1008282
    fn get() -> SystemTime {
13
1008282
        SystemTime::now()
14
1008282
    }
15
}
16

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