Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 74) sorted by relevance

123

/DragonOS/kernel/src/driver/rtc/
H A Dclass.rs17 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 Dinterface.rs19 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 Dmod.rs8 time::{Instant, PosixTimeSpec, NSEC_PER_SEC},
53 fn set_time(&self, dev: &Arc<dyn RtcDevice>, time: &RtcTime) -> Result<(), SystemError>; in set_time()
H A Dsysfs.rs335 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 Dmod.rs8 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 Dtick_common.rs5 time::timer::run_local_timer,
H A Dsyscall.rs3 time::Duration,
13 time::{sleep::nanosleep, PosixTimeSpec},
H A Dsleep.rs11 time::timekeeping::getnstimeofday,
/DragonOS/kernel/src/arch/x86_64/
H A Dtime.rs1 use crate::time::{clocksource::HZ, TimeArch};
17 unsafe { x86::time::rdtsc() as usize } in get_cycles()
H A Dmod.rs21 pub mod time; module
35 pub use crate::arch::time::X86_64TimeArch as CurrentTimeArch;
/DragonOS/kernel/src/arch/riscv64/
H A Dmod.rs18 pub mod time; module
25 pub use self::time::RiscV64TimeArch as CurrentTimeArch;
H A Dtime.rs5 time::{clocksource::HZ, TimeArch},
53 riscv::register::time::read() in get_cycles()
/DragonOS/user/apps/test-mount/src/
H A Dmain.rs5 use std::time;
12 let clock = time::Instant::now(); in main()
/DragonOS/kernel/crates/klog_types/src/
H A Dlib.rs20 pub time: u64, field
46 time: u64, in new()
51 time, in new()
65 time: 0, in zeroed()
/DragonOS/kernel/src/init/
H A Dinit.rs4 time::time_init,
27 time::{
/DragonOS/tools/debugging/logmonitor/src/backend/
H A Devent.rs11 timestamp: std::time::Instant,
/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()
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 Dclock.rs3 use crate::{arch::CurrentTimeArch, time::TimeArch};
/DragonOS/kernel/src/process/
H A Dtimer.rs7 use crate::time::timer::{clock, Jiffies, Timer, TimerFunction};
10 use core::time::Duration;
/DragonOS/kernel/src/driver/clocksource/
H A Dtimer_riscv.rs8 arch::{interrupt::TrapFrame, time::riscv_time_base_freq, CurrentIrqArch, CurrentTimeArch},
24 time::{
/DragonOS/kernel/src/debug/klog/
H A Dmm.rs7 use crate::{arch::CurrentTimeArch, process::Pid, time::TimeArch};
/DragonOS/kernel/src/filesystem/procfs/
H A Dlog.rs5 use crate::time::PosixTimeSpec;
/DragonOS/kernel/src/driver/net/
H A Dloopback.rs15 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 De1000e_driver.rs18 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 Devent.rs6 use std::time::{Duration, Instant};

123