Closed arthurlm closed 3 years ago
Instant is better to have precise time comparison.
Indeed it use a monotonic clock which is closer to an RTC clock than SystemTime.
See: https://doc.rust-lang.org/std/time/struct.Instant.html See: https://doc.rust-lang.org/std/time/struct.SystemTime.html
This was a big oversight in my first pass. Thank you @arthurlm.
Instant is better to have precise time comparison.
Indeed it use a monotonic clock which is closer to an RTC clock than SystemTime.
See: https://doc.rust-lang.org/std/time/struct.Instant.html See: https://doc.rust-lang.org/std/time/struct.SystemTime.html