Searched refs:num_nanoseconds (Results 1 – 5 of 5) sorted by relevance
/external/rust/crates/nix/src/sys/ |
D | time.rs | 46 fn num_nanoseconds(&self) -> i64; in num_nanoseconds() method 170 self.num_nanoseconds() / 1_000_000 in num_milliseconds() 174 self.num_nanoseconds() / 1_000_000_000 in num_microseconds() 177 fn num_nanoseconds(&self) -> i64 { in num_nanoseconds() method 207 TimeSpec::nanoseconds(-self.num_nanoseconds()) in neg() 216 self.num_nanoseconds() + rhs.num_nanoseconds()) in add() 225 self.num_nanoseconds() - rhs.num_nanoseconds()) in sub() 233 let usec = self.num_nanoseconds().checked_mul(i64::from(rhs)) in mul() 244 let usec = self.num_nanoseconds() / i64::from(rhs); in div() 384 fn num_nanoseconds(&self) -> i64 { in num_nanoseconds() method
|
/external/rust/crates/chrono/src/ |
D | oldtime.rs | 202 pub fn num_nanoseconds(&self) -> Option<i64> { in num_nanoseconds() method 552 assert_eq!(Duration::zero().num_nanoseconds(), Some(0)); in test_duration_num_nanoseconds() 553 assert_eq!(Duration::nanoseconds(1).num_nanoseconds(), Some(1)); in test_duration_num_nanoseconds() 554 assert_eq!(Duration::nanoseconds(-1).num_nanoseconds(), Some(-1)); in test_duration_num_nanoseconds() 555 assert_eq!(Duration::nanoseconds(i64::MAX).num_nanoseconds(), Some(i64::MAX)); in test_duration_num_nanoseconds() 556 assert_eq!(Duration::nanoseconds(i64::MIN).num_nanoseconds(), Some(i64::MIN)); in test_duration_num_nanoseconds() 557 assert_eq!(MAX.num_nanoseconds(), None); in test_duration_num_nanoseconds() 558 assert_eq!(MIN.num_nanoseconds(), None); in test_duration_num_nanoseconds() 563 Duration::days(i64::MAX / NANOS_PER_DAY).num_nanoseconds(), in test_duration_num_nanoseconds() 567 Duration::days(i64::MIN / NANOS_PER_DAY).num_nanoseconds(), in test_duration_num_nanoseconds() [all …]
|
D | round.rs | 153 if let Some(span) = duration.num_nanoseconds() { in duration_round() 182 if let Some(span) = duration.num_nanoseconds() { in duration_trunc()
|
/external/rust/crates/plotters/src/coord/ranged1d/types/ |
D | datetime.rs | 34 if let Some(total_ns) = total_span.num_nanoseconds() { in map_coord() 35 if let Some(value_ns) = value_span.num_nanoseconds() { in map_coord() 622 if let Some(total_ns) = total_span.num_nanoseconds() { in key_points() 685 if let Some(total_ns) = total_span.num_nanoseconds() { in map() 686 if let Some(value_ns) = value_span.num_nanoseconds() { in map() 705 if let Some(total_ns) = total_span.num_nanoseconds() { in key_points() 707 let mut start_ns = self.0.num_nanoseconds().unwrap(); in key_points() 1067 .map(|(p, n)| (*n - *p).num_nanoseconds().unwrap()) in test_datetime_nano_range() 1073 .map(|(p, n)| (*n - *p).num_nanoseconds().unwrap()) in test_datetime_nano_range()
|
/external/rust/crates/chrono/src/naive/ |
D | time.rs | 549 frac = (i64::from(frac) + rhs.num_nanoseconds().unwrap()) as u32; in overflowing_add_signed() 558 let rhsfrac = (rhs - OldDuration::seconds(rhssecs)).num_nanoseconds().unwrap(); in overflowing_add_signed()
|