Struct conreg::timebase::TimeDelta [−][src]
pub struct TimeDelta { /* fields omitted */ }
Implementations
impl TimeDelta
[src]
impl TimeDelta
[src]pub fn new(now_fn: fn() -> usize, last: usize) -> Self
[src]
pub fn diff(&mut self) -> MicroSeconds
[src]
pub fn diff(&mut self) -> MicroSeconds
[src]Computes time difference between this and previous call in microseconds
It returns returns zero iff more than OUTDATED_TIME_DIFFERENCE_IN_MICROSECONDS has passed.
First time call the difference to object creation time is returned.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TimeDelta
impl Send for TimeDelta
impl Sync for TimeDelta
impl Unpin for TimeDelta
impl UnwindSafe for TimeDelta
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,