pub enum TimeMeasurement {
Device,
System,
}
Expand description
How times are measured on a device.
Variants§
Device
Using the device own measuting capability.
Normally compatible with async.
System
Using std::time::Instant to measure kernel execution.
When this version is activated, we must await on async tasks.
Trait Implementations§
Source§impl Clone for TimeMeasurement
impl Clone for TimeMeasurement
Source§fn clone(&self) -> TimeMeasurement
fn clone(&self) -> TimeMeasurement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimeMeasurement
impl Debug for TimeMeasurement
impl Copy for TimeMeasurement
Auto Trait Implementations§
impl Freeze for TimeMeasurement
impl RefUnwindSafe for TimeMeasurement
impl Send for TimeMeasurement
impl Sync for TimeMeasurement
impl Unpin for TimeMeasurement
impl UnwindSafe for TimeMeasurement
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