Searched refs:num_microseconds (Results 1 – 3 of 3) sorted by relevance
/external/rust/crates/nix/src/sys/ |
D | time.rs | 45 fn num_microseconds(&self) -> i64; in num_microseconds() method 173 fn num_microseconds(&self) -> i64 { in num_microseconds() method 375 self.num_microseconds() / 1_000 in num_milliseconds() 378 fn num_microseconds(&self) -> i64 { in num_microseconds() method 385 self.num_microseconds() * 1_000 in num_nanoseconds() 412 TimeVal::microseconds(-self.num_microseconds()) in neg() 421 self.num_microseconds() + rhs.num_microseconds()) in add() 430 self.num_microseconds() - rhs.num_microseconds()) in sub() 438 let usec = self.num_microseconds().checked_mul(i64::from(rhs)) in mul() 449 let usec = self.num_microseconds() / i64::from(rhs); in div()
|
/external/rust/crates/chrono/src/ |
D | oldtime.rs | 194 pub fn num_microseconds(&self) -> Option<i64> { in num_microseconds() method 524 assert_eq!(Duration::zero().num_microseconds(), Some(0)); in test_duration_num_microseconds() 525 assert_eq!(Duration::microseconds(1).num_microseconds(), Some(1)); in test_duration_num_microseconds() 526 assert_eq!(Duration::microseconds(-1).num_microseconds(), Some(-1)); in test_duration_num_microseconds() 527 assert_eq!(Duration::nanoseconds(999).num_microseconds(), Some(0)); in test_duration_num_microseconds() 528 assert_eq!(Duration::nanoseconds(1001).num_microseconds(), Some(1)); in test_duration_num_microseconds() 529 assert_eq!(Duration::nanoseconds(-999).num_microseconds(), Some(0)); in test_duration_num_microseconds() 530 assert_eq!(Duration::nanoseconds(-1001).num_microseconds(), Some(-1)); in test_duration_num_microseconds() 531 assert_eq!(Duration::microseconds(i64::MAX).num_microseconds(), Some(i64::MAX)); in test_duration_num_microseconds() 532 assert_eq!(Duration::microseconds(i64::MIN).num_microseconds(), Some(i64::MIN)); in test_duration_num_microseconds() [all …]
|
/external/rust/crates/chrono/src/naive/ |
D | datetime.rs | 2485 assert_eq!(t, time.signed_duration_since(base).num_microseconds().unwrap()); in test_datetime_add_sub_invariant()
|