Searched refs:num_milliseconds (Results 1 – 2 of 2) sorted by relevance
184 pub fn num_milliseconds(&self) -> i64 { in num_milliseconds() method509 assert_eq!(Duration::zero().num_milliseconds(), 0); in test_duration_num_milliseconds()510 assert_eq!(Duration::milliseconds(1).num_milliseconds(), 1); in test_duration_num_milliseconds()511 assert_eq!(Duration::milliseconds(-1).num_milliseconds(), -1); in test_duration_num_milliseconds()512 assert_eq!(Duration::microseconds(999).num_milliseconds(), 0); in test_duration_num_milliseconds()513 assert_eq!(Duration::microseconds(1001).num_milliseconds(), 1); in test_duration_num_milliseconds()514 assert_eq!(Duration::microseconds(-999).num_milliseconds(), 0); in test_duration_num_milliseconds()515 assert_eq!(Duration::microseconds(-1001).num_milliseconds(), -1); in test_duration_num_milliseconds()516 assert_eq!(Duration::milliseconds(i64::MAX).num_milliseconds(), i64::MAX); in test_duration_num_milliseconds()517 assert_eq!(Duration::milliseconds(i64::MIN).num_milliseconds(), i64::MIN); in test_duration_num_milliseconds()[all …]
44 fn num_milliseconds(&self) -> i64; in num_milliseconds() method169 fn num_milliseconds(&self) -> i64 { in num_milliseconds() method374 fn num_milliseconds(&self) -> i64 { in num_milliseconds() method