Lines Matching refs:micros

69     micros: i64,  field
77 pub fn from_micros<T: Into<i64>>(micros: T) -> Instant { in from_micros()
79 micros: micros.into(), in from_micros()
83 pub const fn from_micros_const(micros: i64) -> Instant { in from_micros_const()
84 Instant { micros } in from_micros_const()
90 micros: millis.into() * 1000, in from_millis()
97 micros: millis * 1000, in from_millis_const()
104 micros: secs.into() * 1000000, in from_secs()
116 self.micros % 1000000 / 1000 in millis()
121 pub const fn micros(&self) -> i64 { in micros() method
122 self.micros % 1000000 in micros()
128 self.micros / 1000000 in secs()
134 self.micros / 1000 in total_millis()
139 self.micros in total_micros()
153 Instant::from_micros(self.micros + rhs.total_micros() as i64) in add()
159 self.micros += rhs.total_micros() as i64; in add_assign()
167 Instant::from_micros(self.micros - rhs.total_micros() as i64) in sub()
173 self.micros -= rhs.total_micros() as i64; in sub_assign()
181 Duration::from_micros((self.micros - rhs.micros).unsigned_abs()) in sub()
189 micros: u64, field
195 pub const fn from_micros(micros: u64) -> Duration { in from_micros()
196 Duration { micros } in from_micros()
202 micros: millis * 1000, in from_millis()
209 micros: secs * 1000000, in from_secs()
215 self.micros / 1000 % 1000 in millis()
219 pub const fn micros(&self) -> u64 { in micros() method
220 self.micros % 1000000 in micros()
225 self.micros / 1000000 in secs()
230 self.micros / 1000 in total_millis()
235 self.micros in total_micros()
249 Duration::from_micros(self.micros + rhs.total_micros()) in add()
255 self.micros += rhs.total_micros(); in add_assign()
264 self.micros in sub()
273 self.micros = self in sub_assign()
274 .micros in sub_assign()
284 Duration::from_micros(self.micros * rhs as u64) in mul()
290 self.micros *= rhs as u64; in mul_assign()
298 Duration::from_micros(self.micros / rhs as u64) in div()
304 self.micros /= rhs as u64; in div_assign()
312 Duration::from_micros(self.micros << rhs) in shl()
318 self.micros <<= rhs; in shl_assign()
326 Duration::from_micros(self.micros >> rhs) in shr()
332 self.micros >>= rhs; in shr_assign()
351 Instant::from_micros(val.micros()) in from()
364 Duration::from_micros(val.micros()) in from()