Struct dcs2_clock::OsClock
source · pub struct OsClock { /* private fields */ }
Trait Implementations§
source§impl Stopwatch for OsClock
impl Stopwatch for OsClock
source§fn from_millis(millis: u64) -> Self
fn from_millis(millis: u64) -> Self
Creates a new instance with the target time as now +
millis
source§fn is_timeout(&self) -> bool
fn is_timeout(&self) -> bool
Returns true if the time set in
Stopwatch::from_millis
has passedsource§fn current_time_as_secs(&mut self) -> u64
fn current_time_as_secs(&mut self) -> u64
Returns the current stopwatch time expressed as seconds.
Auto Trait Implementations§
impl RefUnwindSafe for OsClock
impl Send for OsClock
impl Sync for OsClock
impl Unpin for OsClock
impl UnwindSafe for OsClock
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