/DragonOS/kernel/src/driver/rtc/ |
H A D | class.rs | 17 time::{timekeeping::do_settimeofday64, PosixTimeSpec}, 99 let time = r.unwrap(); in rtc_hctosys() localVariable 100 let timespec64: PosixTimeSpec = time.into(); in rtc_hctosys() 106 time.date_string(), in rtc_hctosys() 107 time.time_string(), in rtc_hctosys()
|
H A D | interface.rs | 19 let time = class_ops.read_time(&real_dev)?; in rtc_read_time() localVariable 21 if !time.valid() { in rtc_read_time() 25 return Ok(time); in rtc_read_time()
|
H A D | mod.rs | 8 time::{Instant, PosixTimeSpec, NSEC_PER_SEC}, 53 fn set_time(&self, dev: &Arc<dyn RtcDevice>, time: &RtcTime) -> Result<(), SystemError>; in set_time()
|
H A D | sysfs.rs | 335 let time = rtc_read_time(&rtc_device)?; in show() localVariable 336 sysfs_emit_str(buf, &time.date_string()) in show() 358 let time = rtc_read_time(&rtc_device)?; in show() localVariable 359 sysfs_emit_str(buf, &time.time_string()) in show()
|
/DragonOS/kernel/src/time/ |
H A D | mod.rs | 8 use crate::time::syscall::PosixTimeval; 467 impl From<::core::time::Duration> for Duration { 468 fn from(other: ::core::time::Duration) -> Duration { in from() 473 impl From<Duration> for ::core::time::Duration { 475 ::core::time::Duration::from_micros(val.total_micros()) in from() 480 impl From<smoltcp::time::Instant> for Instant { 481 fn from(val: smoltcp::time::Instant) -> Self { in from() 486 impl From<Instant> for smoltcp::time::Instant { 488 smoltcp::time::Instant::from_millis(val.millis()) in from() 493 impl From<smoltcp::time::Duration> for Duration { [all …]
|
H A D | tick_common.rs | 5 time::timer::run_local_timer,
|
H A D | syscall.rs | 3 time::Duration, 13 time::{sleep::nanosleep, PosixTimeSpec},
|
H A D | sleep.rs | 11 time::timekeeping::getnstimeofday,
|
/DragonOS/kernel/src/arch/x86_64/ |
H A D | time.rs | 1 use crate::time::{clocksource::HZ, TimeArch}; 17 unsafe { x86::time::rdtsc() as usize } in get_cycles()
|
H A D | mod.rs | 21 pub mod time; module 35 pub use crate::arch::time::X86_64TimeArch as CurrentTimeArch;
|
/DragonOS/kernel/src/arch/riscv64/ |
H A D | mod.rs | 18 pub mod time; module 25 pub use self::time::RiscV64TimeArch as CurrentTimeArch;
|
H A D | time.rs | 5 time::{clocksource::HZ, TimeArch}, 53 riscv::register::time::read() in get_cycles()
|
/DragonOS/user/apps/test-mount/src/ |
H A D | main.rs | 5 use std::time; 12 let clock = time::Instant::now(); in main()
|
/DragonOS/kernel/crates/klog_types/src/ |
H A D | lib.rs | 20 pub time: u64, field 46 time: u64, in new() 51 time, in new() 65 time: 0, in zeroed()
|
/DragonOS/kernel/src/init/ |
H A D | init.rs | 4 time::time_init, 27 time::{
|
/DragonOS/tools/debugging/logmonitor/src/backend/ |
H A D | event.rs | 11 timestamp: std::time::Instant,
|
/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() 165 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/kernel/src/sched/ |
H A D | clock.rs | 3 use crate::{arch::CurrentTimeArch, time::TimeArch};
|
/DragonOS/kernel/src/process/ |
H A D | timer.rs | 7 use crate::time::timer::{clock, Jiffies, Timer, TimerFunction}; 10 use core::time::Duration;
|
/DragonOS/kernel/src/driver/clocksource/ |
H A D | timer_riscv.rs | 8 arch::{interrupt::TrapFrame, time::riscv_time_base_freq, CurrentIrqArch, CurrentTimeArch}, 24 time::{
|
/DragonOS/kernel/src/debug/klog/ |
H A D | mm.rs | 7 use crate::{arch::CurrentTimeArch, process::Pid, time::TimeArch};
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | log.rs | 5 use crate::time::PosixTimeSpec;
|
/DragonOS/kernel/src/driver/net/ |
H A D | loopback.rs | 15 use crate::time::Instant; 212 _timestamp: smoltcp::time::Instant, in receive() 234 fn transmit(&mut self, _timestamp: smoltcp::time::Instant) -> Option<Self::TxToken<'_>> { in transmit() 498 let timestamp: smoltcp::time::Instant = Instant::now().into(); in poll()
|
/DragonOS/kernel/src/driver/net/e1000e/ |
H A D | e1000e_driver.rs | 18 time::Instant, 153 _timestamp: smoltcp::time::Instant, in receive() 168 fn transmit(&mut self, _timestamp: smoltcp::time::Instant) -> Option<Self::TxToken<'_>> { in transmit() 339 let timestamp: smoltcp::time::Instant = Instant::now().into(); in poll()
|
/DragonOS/tools/debugging/logmonitor/src/ |
H A D | event.rs | 6 use std::time::{Duration, Instant};
|