Home
last modified time | relevance | path

Searched refs:from_micros (Results 1 – 1 of 1) sorted by relevance

/DragonOS/kernel/src/time/
H A Dmod.rs106 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()
[all …]