We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SystemTime
1 parent e59f2cf commit 452f8e8Copy full SHA for 452f8e8
boringtun/src/noise/handshake.rs
@@ -171,7 +171,7 @@ impl TimeStamper {
171
/// Create a new TimeStamper
172
pub fn new(now: Instant) -> TimeStamper {
173
TimeStamper {
174
- duration_at_start: SystemTime::now()
+ duration_at_start: SystemTime::now() // This is technically impure but it doesn't matter because the generated timestamps are only offset by this.
175
.duration_since(SystemTime::UNIX_EPOCH)
176
.unwrap(),
177
instant_at_start: now,
0 commit comments