Lines Matching refs:from_micros
77 pub fn from_micros<T: Into<i64>>(micros: T) -> Instant { in from_micros() method
110 Self::from_micros(ktime_get_real_ns() / 1000) in now()
153 Instant::from_micros(self.micros + rhs.total_micros() as i64) in add()
167 Instant::from_micros(self.micros - rhs.total_micros() as i64) in sub()
181 Duration::from_micros((self.micros - rhs.micros).unsigned_abs()) in sub()
193 pub const ZERO: Duration = Duration::from_micros(0);
195 pub const fn from_micros(micros: u64) -> Duration { in from_micros() method
249 Duration::from_micros(self.micros + rhs.total_micros()) in add()
263 Duration::from_micros( in sub()
284 Duration::from_micros(self.micros * rhs as u64) in mul()
298 Duration::from_micros(self.micros / rhs as u64) in div()
312 Duration::from_micros(self.micros << rhs) in shl()
326 Duration::from_micros(self.micros >> rhs) in shr()
338 Duration::from_micros(other.as_secs() * 1000000 + other.subsec_micros() as u64) in from()
344 ::core::time::Duration::from_micros(val.total_micros()) in from()
351 Instant::from_micros(val.micros()) in from()
364 Duration::from_micros(val.micros()) in from()