Searched refs:from_secs (Results 1 – 7 of 7) sorted by relevance
38 <Jiffies as From<Duration>>::from(Duration::from_secs(second)).timer_jiffies(); in new()84 <Jiffies as From<Duration>>::from(Duration::from_secs(self.expired_second)) in remain()
204 Self::from_secs(secs as i64) in mktime64()233 pub fn from_secs<T: Into<i64>>(secs: T) -> Instant { in from_secs() method338 pub const fn from_secs(secs: u64) -> Duration { in from_secs() method
170 let second = Duration::from_secs(expired_second as u64); in alarm()
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()
363 thread::sleep(Duration::from_secs(2)); in test02()367 thread::sleep(Duration::from_secs(3)); in test02()
64 dhcp_socket.set_max_lease_duration(Some(smoltcp::time::Duration::from_secs(10))); in dhcp_query()