Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
museun committed Apr 7, 2024
1 parent 7f0a311 commit 54dedaa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ use mock_instant::Instant;
use std::time::Instant;
```
Or a `std::time::SystemTime` with this one by doing something similar to:
```rust
#[cfg(test)]
use mock_instant::SystemTime;
#[cfg(not(test))]
use std::time::SystemTime;
```
## Example
```rust
Expand Down

0 comments on commit 54dedaa

Please sign in to comment.