Home
last modified time | relevance | path

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

/DragonOS/kernel/src/time/
H A Dmod.rs113 tv_sec: dur.total_micros() as i64 / 1000000, in from()
114 tv_nsec: (dur.total_micros() as i64 % 1000000) * 1000, in from()
270 pub const fn total_micros(&self) -> i64 { in total_micros() method
285 Instant::from_micros(self.micros + rhs.total_micros() as i64) in add()
291 self.micros += rhs.total_micros() as i64; in add_assign()
299 Instant::from_micros(self.micros - rhs.total_micros() as i64) in sub()
305 self.micros -= rhs.total_micros() as i64; in sub_assign()
365 pub const fn total_micros(&self) -> u64 { in total_micros() method
380 Duration::from_micros(self.micros + rhs.total_micros()) in add()
386 self.micros += rhs.total_micros(); in add_assign()
[all …]