Searched refs:Instant (Results 1 – 10 of 10) sorted by relevance
/DragonOS/kernel/src/time/ |
H A D | mod.rs | 144 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 D | event.rs | 6 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 D | main.rs | 37 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 D | event.rs | 11 timestamp: std::time::Instant,
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e_driver.rs | 18 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 D | loopback.rs | 15 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 D | virtio_net.rs | 51 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 D | mod.rs | 8 time::{Instant, PosixTimeSpec, NSEC_PER_SEC}, 143 let instant = Instant::mktime64( in from()
|
/DragonOS/user/apps/test-mount/src/ |
H A D | main.rs | 14 let clock = time::Instant::now(); in main()
|
/DragonOS/tools/debugging/logmonitor/src/backend/monitor/ |
H A D | mm.rs | 87 let mut last_time = std::time::Instant::now(); in handle_logs() 103 let current_time = std::time::Instant::now(); in handle_logs()
|