Lines Matching refs:Duration
29 time::{Duration, Instant},
67 timeout: Duration,
74 fn update_overdue_and_find_next_timeout(&mut self) -> (bool, Option<Duration>) { in update_overdue_and_find_next_timeout() argument
76 let mut next_timeout: Option<Duration> = None; in update_overdue_and_find_next_timeout()
80 if timeout == Duration::new(0, 0) { in update_overdue_and_find_next_timeout()
118 if r.deadline.saturating_duration_since(now) == Duration::new(0, 0) { in log_report()
166 const NOISY_REPORT_TIMEOUT: Duration = Duration::from_secs(1);
171 pub fn new(timeout: Duration) -> Arc<Self> { in new()
191 timeout: Duration, in watch_with_optional() argument
209 timeout: Duration, in watch_with() argument
216 pub fn watch(wd: &Arc<Self>, id: &'static str, timeout: Duration) -> Option<WatchPoint> { in watch()
297 use std::time::Duration;
311 Watchdog::watch_with(&wd, "test_watchdog", Duration::from_millis(100), move || { in test_watchdog()
315 thread::sleep(Duration::from_millis(500)); in test_watchdog()