pub enum PerformanceCounter {}Expand description
The performance counter: ticks at its frequency, from an unspecified zero within this boot.
Its points do not compare with interrupt time’s, though both count from around the boot:
ⓘ
use win_time_sys::{Clock, InterruptClock, PerformanceClock};
let _ = PerformanceClock.now() < InterruptClock.now();Trait Implementations§
Source§impl Timeline for PerformanceCounter
impl Timeline for PerformanceCounter
Source§fn ticks_per_second() -> NonZeroU64
fn ticks_per_second() -> NonZeroU64
How many ticks make one second. It must not change for the life of the process.
Auto Trait Implementations§
impl Freeze for PerformanceCounter
impl RefUnwindSafe for PerformanceCounter
impl Send for PerformanceCounter
impl Sync for PerformanceCounter
impl Unpin for PerformanceCounter
impl UnsafeUnpin for PerformanceCounter
impl UnwindSafe for PerformanceCounter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more