Searched refs:secs (Results 1 – 3 of 3) sorted by relevance
/DragonOS/kernel/src/time/ |
H A D | timekeep.rs | 49 fn ktime_set(secs: i64, nsecs: u64) -> ktime_t { in ktime_set() 50 if unlikely(secs >= KTIME_SEC_MAX) { in ktime_set() 54 return secs * NSEC_PER_SEC as i64 + nsecs as i64; in ktime_set()
|
H A D | mod.rs | 197 let secs = ((((year / 4 - year / 100 + year / 400 + 367 * mon / 12 + day) + year * 365 in mktime64() localVariable 204 Self::from_secs(secs as i64) in mktime64() 233 pub fn from_secs<T: Into<i64>>(secs: T) -> Instant { in from_secs() 235 micros: secs.into() * 1000000, in from_secs() 259 pub const fn secs(&self) -> i64 { in secs() method 277 write!(f, "{}.{:0>3}s", self.secs(), self.millis()) in fmt() 338 pub const fn from_secs(secs: u64) -> Duration { in from_secs() 340 micros: secs * 1000000, in from_secs() 355 pub const fn secs(&self) -> u64 { in secs() method 372 write!(f, "{}.{:03}s", self.secs(), self.millis()) in fmt()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | mod.rs | 159 PosixTimeSpec::new(instant.secs(), (NSEC_PER_SEC >> 1).into()) in from()
|