Searched refs:Duration (Results 1 – 9 of 9) sorted by relevance
83 return Self::from(Duration::from_millis( in now_cpu_time()102 type Output = Duration;106 Duration::from_micros((sec * 1000000 + nsec / 1000) as u64) in sub()110 impl From<Duration> for PosixTimeSpec {111 fn from(dur: Duration) -> Self { in from()128 impl From<PosixTimeSpec> for Duration { implementation130 Duration::from_micros(val.tv_sec as u64 * 1000000 + val.tv_nsec as u64 / 1000) in from()281 impl ops::Add<Duration> for Instant {284 fn add(self, rhs: Duration) -> Instant { in add()289 impl ops::AddAssign<Duration> for Instant {[all …]
5 time::Duration,53 impl From<Jiffies> for Duration { implementation65 let result = Duration::from_millis(ms); in from()70 impl From<Duration> for Jiffies {80 fn from(ms: Duration) -> Self { in from()
3 time::Duration,170 let second = Duration::from_secs(expired_second as u64); in alarm()
10 use core::time::Duration;38 <Jiffies as From<Duration>>::from(Duration::from_secs(second)).timer_jiffies(); in new()78 pub fn remain(&self) -> Duration { in remain() argument80 Duration::ZERO in remain()84 <Jiffies as From<Duration>>::from(Duration::from_secs(self.expired_second)) in remain()86 let remain_second = Duration::from(Jiffies::new(end_jiffies - now_jiffies)); in remain()
6 use std::time::{Duration, Instant};37 let tick_rate = Duration::from_millis(tick_rate); in new()
11 time::Duration,363 thread::sleep(Duration::from_secs(2)); in test02()367 thread::sleep(Duration::from_secs(3)); in test02()
165 std::thread::sleep(std::time::Duration::from_secs(1)); in run()256 std::thread::sleep(std::time::Duration::from_secs(1)); in load_header()
100 std::thread::sleep(std::time::Duration::from_secs(1)); in run_main()
64 dhcp_socket.set_max_lease_duration(Some(smoltcp::time::Duration::from_secs(10))); in dhcp_query()