Lines Matching refs:i64
55 pub tv_sec: i64,
56 pub tv_nsec: i64,
61 pub fn new(sec: i64, nsec: i64) -> PosixTimeSpec { in new() argument
96 pub fn total_nanos(&self) -> i64 { in total_nanos() argument
113 tv_sec: dur.total_micros() as i64 / 1000000, in from()
114 tv_nsec: (dur.total_micros() as i64 % 1000000) * 1000, in from()
123 tv_nsec: value.tv_usec as i64 * 1000, in from()
145 micros: i64,
181 let mut mon: i64 = mon0.into(); in mktime64()
204 Self::from_secs(secs as i64) in mktime64()
208 pub fn from_micros<T: Into<i64>>(micros: T) -> Instant { in from_micros()
214 pub const fn from_micros_const(micros: i64) -> Instant { in from_micros_const()
219 pub fn from_millis<T: Into<i64>>(millis: T) -> Instant { in from_millis()
226 pub const fn from_millis_const(millis: i64) -> Instant { in from_millis_const()
233 pub fn from_secs<T: Into<i64>>(secs: T) -> Instant { in from_secs()
247 pub const fn millis(&self) -> i64 { in millis() argument
253 pub const fn micros(&self) -> i64 { in micros() argument
259 pub const fn secs(&self) -> i64 { in secs() argument
265 pub const fn total_millis(&self) -> i64 { in total_millis() argument
270 pub const fn total_micros(&self) -> i64 { in total_micros() argument
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()