diff --git a/src/std-support/rust-std-stub/src/time.rs b/src/std-support/rust-std-stub/src/time.rs index 97421e6e..a19ce2d1 100644 --- a/src/std-support/rust-std-stub/src/time.rs +++ b/src/std-support/rust-std-stub/src/time.rs @@ -10,7 +10,7 @@ pub const UNIX_EPOCH: SystemTime = SystemTime(0); impl SystemTime { pub fn duration_since(&self, time: SystemTime) -> Result { - if self.0 - time.0 > 0 { + if self.0 >= time.0 { Ok(Duration::new(self.0 - time.0, 0)) } else { Err(SystemTimeError)