Home
last modified time | relevance | path

Searched refs:Duration (Results 1 – 9 of 9) sorted by relevance

/DragonOS/kernel/src/time/
H A Dmod.rs83 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 { implementation
130 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 …]
H A Dtimer.rs5 time::Duration,
53 impl From<Jiffies> for Duration { implementation
65 let result = Duration::from_millis(ms); in from()
70 impl From<Duration> for Jiffies {
80 fn from(ms: Duration) -> Self { in from()
H A Dsyscall.rs3 time::Duration,
170 let second = Duration::from_secs(expired_second as u64); in alarm()
/DragonOS/kernel/src/process/
H A Dtimer.rs10 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() argument
80 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()
/DragonOS/tools/debugging/logmonitor/src/
H A Devent.rs6 use std::time::{Duration, Instant};
37 let tick_rate = Duration::from_millis(tick_rate); in new()
/DragonOS/user/apps/test-for-robustfutex/src/
H A Dmain.rs11 time::Duration,
363 thread::sleep(Duration::from_secs(2)); in test02()
367 thread::sleep(Duration::from_secs(3)); in test02()
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/
H A Dmm.rs165 std::thread::sleep(std::time::Duration::from_secs(1)); in run()
256 std::thread::sleep(std::time::Duration::from_secs(1)); in load_header()
/DragonOS/tools/debugging/logmonitor/src/backend/
H A Dmod.rs100 std::thread::sleep(std::time::Duration::from_secs(1)); in run_main()
/DragonOS/kernel/src/net/
H A Dnet_core.rs64 dhcp_socket.set_max_lease_duration(Some(smoltcp::time::Duration::from_secs(10))); in dhcp_query()