Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/time/
Dmod.rs68 pub struct Instant { struct
73 impl Instant { implementation
74 pub const ZERO: Instant = Instant::from_micros_const(0);
77 pub fn from_micros<T: Into<i64>>(micros: T) -> Instant { in from_micros() argument
78 Instant { in from_micros()
83 pub const fn from_micros_const(micros: i64) -> Instant { in from_micros_const() argument
84 Instant { micros } in from_micros_const()
88 pub fn from_millis<T: Into<i64>>(millis: T) -> Instant { in from_millis() argument
89 Instant { in from_millis()
95 pub const fn from_millis_const(millis: i64) -> Instant { in from_millis_const() argument
[all …]
/DragonOS-0.1.8/kernel/src/driver/net/
Dvirtio_net.rs17 time::Instant,
148 _timestamp: smoltcp::time::Instant, in receive() argument
160 fn transmit(&mut self, _timestamp: smoltcp::time::Instant) -> Option<Self::TxToken<'_>> { in transmit()
282 let timestamp: smoltcp::time::Instant = Instant::now().into(); in poll()