Home
last modified time | relevance | path

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

/DragonOS/kernel/src/time/
H A Dmod.rs144 pub struct Instant { struct
149 impl Instant { impl
150 pub const ZERO: Instant = Instant::from_micros_const(0);
208 pub fn from_micros<T: Into<i64>>(micros: T) -> Instant { in from_micros() argument
209 Instant { in from_micros()
214 pub const fn from_micros_const(micros: i64) -> Instant { in from_micros_const() argument
215 Instant { micros } in from_micros_const()
219 pub fn from_millis<T: Into<i64>>(millis: T) -> Instant { in from_millis() argument
220 Instant { in from_millis()
226 pub const fn from_millis_const(millis: i64) -> Instant { in from_millis_const() argument
[all …]
/DragonOS/tools/debugging/logmonitor/src/
H A Devent.rs6 use std::time::{Duration, Instant};
42 let mut last_tick = Instant::now(); in new()
60 last_tick = Instant::now(); in new()
/DragonOS/user/apps/test_ebpf/src/
H A Dmain.rs37 let mut now = time::Instant::now(); in main()
39 let new_now = time::Instant::now(); in main()
/DragonOS/tools/debugging/logmonitor/src/backend/
H A Devent.rs11 timestamp: std::time::Instant,
/DragonOS/kernel/src/driver/net/e1000e/
H A De1000e_driver.rs18 time::Instant,
153 _timestamp: smoltcp::time::Instant, in receive() argument
168 fn transmit(&mut self, _timestamp: smoltcp::time::Instant) -> Option<Self::TxToken<'_>> { in transmit()
202 smoltcp::iface::Interface::new(iface_config, &mut driver, Instant::now().into()); in new()
339 let timestamp: smoltcp::time::Instant = Instant::now().into(); in poll()
/DragonOS/kernel/src/driver/net/
H A Dloopback.rs15 use crate::time::Instant;
218 _timestamp: smoltcp::time::Instant, in receive() argument
240 fn transmit(&mut self, _timestamp: smoltcp::time::Instant) -> Option<Self::TxToken<'_>> { in transmit()
286 smoltcp::iface::Interface::new(iface_config, &mut driver, Instant::now().into()); in new()
504 let timestamp: smoltcp::time::Instant = Instant::now().into(); in poll()
H A Dvirtio_net.rs51 time::Instant,
408 let iface = iface::Interface::new(iface_config, &mut device_inner, Instant::now().into()); in new()
553 _timestamp: smoltcp::time::Instant, in receive() argument
565 fn transmit(&mut self, _timestamp: smoltcp::time::Instant) -> Option<Self::TxToken<'_>> { in transmit()
675 let timestamp: smoltcp::time::Instant = Instant::now().into(); in poll()
/DragonOS/kernel/src/driver/rtc/
H A Dmod.rs8 time::{Instant, PosixTimeSpec, NSEC_PER_SEC},
143 let instant = Instant::mktime64( in from()
/DragonOS/user/apps/test-mount/src/
H A Dmain.rs14 let clock = time::Instant::now(); in main()
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/
H A Dmm.rs87 let mut last_time = std::time::Instant::now(); in handle_logs()
103 let current_time = std::time::Instant::now(); in handle_logs()