Home
last modified time | relevance | path

Searched refs:rem (Results 1 – 2 of 2) sorted by relevance

/DragonOS/kernel/src/time/
H A Dtimeconv.rs90 let mut rem = totalsecs % SECS_PER_DAY; in time_to_calendar() localVariable
93 rem += offset as i64; in time_to_calendar()
94 while rem < 0 { in time_to_calendar()
95 rem += SECS_PER_DAY; in time_to_calendar()
98 while rem >= SECS_PER_DAY { in time_to_calendar()
99 rem -= SECS_PER_DAY; in time_to_calendar()
103 result.tm_hour = (rem / SECS_PER_HOUR) as i32; in time_to_calendar()
104 rem %= SECS_PER_HOUR; in time_to_calendar()
107 result.tm_min = (rem / 60) as i32; in time_to_calendar()
108 rem %= 60; in time_to_calendar()
[all …]
/DragonOS/kernel/src/syscall/
H A Dmod.rs321 let rem = args[1] as *mut PosixTimeSpec; in handle() localVariable
323 let virt_rem = VirtAddr::new(rem as usize); in handle()
330 Self::nanosleep(req, rem) in handle()