pub enum TimerPrecision {
Normal,
High,
Exact,
}Expand description
Quanto um timer pode atrasar.
Variants§
Normal
O relógio normal do sistema (no Windows, degraus de ~15,6 ms): o que menos gasta CPU e bateria. O padrão.
High
~1 ms: pede ao sistema o relógio fino enquanto o timer estiver ligado.
Exact
Abaixo de 0,1 ms: dorme até ~1,5 ms antes e termina esperando ativo (um núcleo ocupado nesse trecho).
Trait Implementations§
Source§impl Clone for TimerPrecision
impl Clone for TimerPrecision
impl Copy for TimerPrecision
Source§impl Debug for TimerPrecision
impl Debug for TimerPrecision
Source§impl Default for TimerPrecision
impl Default for TimerPrecision
impl Eq for TimerPrecision
Source§impl Hash for TimerPrecision
impl Hash for TimerPrecision
Source§impl Ord for TimerPrecision
impl Ord for TimerPrecision
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TimerPrecision
impl PartialEq for TimerPrecision
Source§impl PartialOrd for TimerPrecision
impl PartialOrd for TimerPrecision
Source§impl PropEnum for TimerPrecision
impl PropEnum for TimerPrecision
impl StructuralPartialEq for TimerPrecision
Auto Trait Implementations§
impl Forget for TimerPrecision
impl Freeze for TimerPrecision
impl Move for TimerPrecision
impl RefUnwindSafe for TimerPrecision
impl Send for TimerPrecision
impl Sync for TimerPrecision
impl Unpin for TimerPrecision
impl UnsafeUnpin for TimerPrecision
impl UnwindSafe for TimerPrecision
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