Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/time/
Dmod.rs149 impl ops::Add<Duration> for Instant {
152 fn add(self, rhs: Duration) -> Instant { in add()
157 impl ops::AddAssign<Duration> for Instant {
158 fn add_assign(&mut self, rhs: Duration) { in add_assign() argument
163 impl ops::Sub<Duration> for Instant {
166 fn sub(self, rhs: Duration) -> Instant { in sub()
171 impl ops::SubAssign<Duration> for Instant {
172 fn sub_assign(&mut self, rhs: Duration) { in sub_assign() argument
178 type Output = Duration;
180 fn sub(self, rhs: Instant) -> Duration { in sub() argument
[all …]
/DragonOS-0.1.8/kernel/src/net/
Dnet_core.rs53 dhcp_socket.set_max_lease_duration(Some(smoltcp::time::Duration::from_secs(10))); in dhcp_query()