Lines Matching refs:i64
49 pub tv_sec: i64,
50 pub tv_nsec: i64,
55 pub fn new(sec: i64, nsec: i64) -> TimeSpec { in new() argument
96 tv_sec: dur.total_micros() as i64 / 1000000, in from()
97 tv_nsec: (dur.total_micros() as i64 % 1000000) * 1000, in from()
120 micros: i64,
128 pub fn from_micros<T: Into<i64>>(micros: T) -> Instant { in from_micros()
134 pub const fn from_micros_const(micros: i64) -> Instant { in from_micros_const()
139 pub fn from_millis<T: Into<i64>>(millis: T) -> Instant { in from_millis()
146 pub const fn from_millis_const(millis: i64) -> Instant { in from_millis_const()
153 pub fn from_secs<T: Into<i64>>(secs: T) -> Instant { in from_secs()
166 pub const fn millis(&self) -> i64 { in millis() argument
172 pub const fn micros(&self) -> i64 { in micros() argument
178 pub const fn secs(&self) -> i64 { in secs() argument
184 pub const fn total_millis(&self) -> i64 { in total_millis() argument
189 pub const fn total_micros(&self) -> i64 { in total_micros() argument
204 Instant::from_micros(self.micros + rhs.total_micros() as i64) in add()
210 self.micros += rhs.total_micros() as i64; in add_assign()
218 Instant::from_micros(self.micros - rhs.total_micros() as i64) in sub()
224 self.micros -= rhs.total_micros() as i64; in sub_assign()