/DragonOS/user/apps/test_fstat/ |
H A D | main.c | 29 printf("st_atim.sec= %ld\tst_atim.nsec= %ld\n", (*st).st_atim.tv_sec, (*st).st_atim.tv_nsec); in main() 30 printf("st_mtim.sec= %ld\tst_mtim.nsec= %ld\n", (*st).st_mtim.tv_sec, (*st).st_mtim.tv_nsec); in main() 31 printf("st_ctim.sec= %ld\tst_ctim.nsec= %ld\n", (*st).st_ctim.tv_sec, (*st).st_ctim.tv_nsec); in main()
|
/DragonOS/user/apps/test_gettimeofday/ |
H A D | main.c | 14 printf("%ld.%06ld\n", tv->tv_sec, tv->tv_usec); in main() 21 printf("tv = %ld.%06ld\n", tv->tv_sec, tv->tv_usec); in main()
|
/DragonOS/kernel/src/time/ |
H A D | timekeeping.rs | 85 tv_sec: 0, in new() 89 tv_sec: 0, in new() 93 tv_sec: 0, in new() 97 tv_sec: 0, in new() 280 timekeeper.xtime.tv_sec += 1; in logarithmic_accumulation() 328 xtime.tv_sec += xtime.tv_nsec / NSEC_PER_SEC as i64; in getnstimeofday() 345 tv_sec: tp.tv_sec, in do_gettimeofday() 378 timekeeper.wall_to_monotonic.tv_sec, in timekeeping_init() 379 ) = (-timekeeper.xtime.tv_nsec, -timekeeper.xtime.tv_sec); in timekeeping_init() 439 tk.xtime.tv_sec += 1; in update_wall_time() [all …]
|
H A D | sleep.rs | 31 if sleep_time.tv_nsec < 500000 && sleep_time.tv_sec == 0 { in nanosleep() 37 tv_sec: 0, in nanosleep() 43 sleep_time.tv_sec as u64 * 1000000 + sleep_time.tv_nsec as u64 / 1000; in nanosleep()
|
H A D | syscall.rs | 22 pub tv_sec: PosixTimeT, field 83 tv_sec: unsafe { *sleep_time }.tv_sec, in nanosleep() 89 unsafe { *rm_time }.tv_sec = slt_spec.tv_sec; in nanosleep()
|
H A D | mod.rs | 55 pub tv_sec: i64, field 63 tv_sec: sec, in new() 97 self.tv_sec * 1000000000 + self.tv_nsec in total_nanos() 104 let sec = self.tv_sec.checked_sub(rhs.tv_sec).unwrap_or(0); in sub() 113 tv_sec: dur.total_micros() as i64 / 1000000, in from() 122 tv_sec: value.tv_sec, in from() 130 Duration::from_micros(val.tv_sec as u64 * 1000000 + val.tv_nsec as u64 / 1000) in from() 242 Self::from_micros(tm.tv_sec * 1000000 + tm.tv_nsec / 1000) in now()
|
H A D | timekeep.rs | 30 let r = time_spec.tv_sec * 1_000_000_000 + time_spec.tv_nsec; in ktime_get_real() 60 return ktime_set(ts.tv_sec, ts.tv_nsec as u64); in timespec_to_ktime()
|
/DragonOS/kernel/src/filesystem/vfs/ |
H A D | syscall.rs | 136 tv_sec: 0, in new() 140 tv_sec: 0, in new() 144 tv_sec: 0, in new() 224 tv_sec: 0, in new() 228 tv_sec: 0, in new() 232 tv_sec: 0, in new() 236 tv_sec: 0, in new() 1306 kstat.atime.tv_sec = metadata.atime.tv_sec; in do_fstat() 1308 kstat.mtime.tv_sec = metadata.mtime.tv_sec; in do_fstat() 1310 kstat.ctime.tv_sec = metadata.ctime.tv_sec; in do_fstat() [all …]
|
/DragonOS/user/apps/test_statx/src/ |
H A D | main.rs | 37 pub tv_sec: i64, field
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | log.rs | 103 level, timestamp.tv_sec, timestamp.tv_nsec, message in fmt()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | class.rs | 108 timespec64.tv_sec in rtc_hctosys()
|
/DragonOS/kernel/src/net/ |
H A D | net_core.rs | 129 tv_sec: 5, in dhcp_query()
|
/DragonOS/kernel/src/net/event_poll/ |
H A D | mod.rs | 431 if !(timespec.tv_sec > 0 || timespec.tv_nsec > 0) { in do_epoll_wait() 489 (timespec.tv_sec * 1000000 + timespec.tv_nsec / 1000) as u64, in do_epoll_wait()
|
/DragonOS/kernel/src/libs/futex/ |
H A D | futex.rs | 274 let sec = time.tv_sec; in futex_wait()
|