Lines Matching +full:01 +full:- +full:win32
88 /// # OS-specific behaviors
90 /// An `Instant` is a wrapper around system-specific types and it may behave
109 /// |-----------|----------------------------------------------------------------------|
118 /// [currently]: crate::io#platform-specific-behavior
119 …eryPerformanceCounter]: https://docs.microsoft.com/en-us/windows/win32/api/profileapi/nf-profileap…
121 /// [timekeeping in SGX]: https://edp.fortanix.com/docs/concepts/rust-std/#codestdtimecode
146 /// [tier 1]: https://doc.rust-lang.org/rustc/platform-support.html
173 /// fixed point in time, a `SystemTime` can be converted to a human-readable time,
203 /// # Platform-specific behavior
205 /// The precision of `SystemTime` can depend on the underlying OS-specific time format.
213 /// |-----------|----------------------------------------------------------------------|
222 /// [currently]: crate::io#platform-specific-behavior
224 /// [timekeeping in SGX]: https://edp.fortanix.com/docs/concepts/rust-std/#codestdtimecode
225 /// [gettimeofday]: https://man7.org/linux/man-pages/man2/gettimeofday.2.html
228 …TimePreciseAsFileTime]: https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoap…
229 …tSystemTimeAsFileTime]: https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoap…
275 pub fn now() -> Instant { in now()
304 pub fn duration_since(&self, earlier: Instant) -> Duration { in duration_since()
330 pub fn checked_duration_since(&self, earlier: Instant) -> Option<Duration> { in checked_duration_since()
351 pub fn saturating_duration_since(&self, earlier: Instant) -> Duration { in saturating_duration_since()
378 pub fn elapsed(&self) -> Duration { in elapsed()
379 Instant::now() - *self in elapsed()
386 pub fn checked_add(&self, duration: Duration) -> Option<Instant> { in checked_add()
390 /// Returns `Some(t)` where `t` is the time `self - duration` if `t` can be represented as
394 pub fn checked_sub(&self, duration: Duration) -> Option<Instant> { in checked_sub()
407 fn add(self, other: Duration) -> Instant { in add()
423 fn sub(self, other: Duration) -> Instant { in sub()
431 *self = *self - other; in sub_assign()
449 fn sub(self, other: Instant) -> Duration { in sub()
456 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
465 /// This constant is defined to be "1970-01-01 00:00:00 UTC" on all systems with
477 /// Ok(n) => println!("1970-01-01 00:00:00 UTC was {} seconds ago!", n.as_secs()),
495 pub fn now() -> SystemTime { in now()
524 pub fn duration_since(&self, earlier: SystemTime) -> Result<Duration, SystemTimeError> { in duration_since()
554 pub fn elapsed(&self) -> Result<Duration, SystemTimeError> { in elapsed()
562 pub fn checked_add(&self, duration: Duration) -> Option<SystemTime> { in checked_add()
566 /// Returns `Some(t)` where `t` is the time `self - duration` if `t` can be represented as
570 pub fn checked_sub(&self, duration: Duration) -> Option<SystemTime> { in checked_sub()
583 fn add(self, dur: Duration) -> SystemTime { in add()
599 fn sub(self, dur: Duration) -> SystemTime { in sub()
607 *self = *self - other; in sub_assign()
613 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
621 /// This constant is defined to be "1970-01-01 00:00:00 UTC" on all systems with
633 /// Ok(n) => println!("1970-01-01 00:00:00 UTC was {} seconds ago!", n.as_secs()),
664 pub fn duration(&self) -> Duration { in duration()
672 fn description(&self) -> &str { in description()
679 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
685 fn from_inner(time: time::SystemTime) -> SystemTime { in from_inner()
691 fn into_inner(self) -> time::SystemTime { in into_inner()