Lines Matching refs:from_micros
106 Duration::from_micros((sec * 1000000 + nsec / 1000) as u64) in sub()
130 Duration::from_micros(val.tv_sec as u64 * 1000000 + val.tv_nsec as u64 / 1000) in from()
208 pub fn from_micros<T: Into<i64>>(micros: T) -> Instant { in from_micros() method
242 Self::from_micros(tm.tv_sec * 1000000 + tm.tv_nsec / 1000) in now()
285 Instant::from_micros(self.micros + rhs.total_micros() as i64) in add()
299 Instant::from_micros(self.micros - rhs.total_micros() as i64) in sub()
313 Duration::from_micros((self.micros - rhs.micros).unsigned_abs()) in sub()
324 pub const ZERO: Duration = Duration::from_micros(0);
326 pub const fn from_micros(micros: u64) -> Duration { in from_micros() method
380 Duration::from_micros(self.micros + rhs.total_micros()) in add()
394 Duration::from_micros( in sub()
415 Duration::from_micros(self.micros * rhs as u64) in mul()
429 Duration::from_micros(self.micros / rhs as u64) in div()
443 Duration::from_micros(self.micros << rhs) in shl()
457 Duration::from_micros(self.micros >> rhs) in shr()
469 Duration::from_micros(other.as_secs() * 1000000 + other.subsec_micros() as u64) in from()
475 ::core::time::Duration::from_micros(val.total_micros()) in from()
482 Instant::from_micros(val.micros()) in from()
495 Duration::from_micros(val.micros()) in from()