pub struct VirtualTimeReport {
pub steps: u64,
pub auto_advances: u64,
pub total_wakeups: u64,
pub time_start: Time,
pub time_end: Time,
pub virtual_elapsed_nanos: u64,
}Expand description
Report from a LabRuntime::run_with_auto_advance execution.
Captures statistics about automatic time advancement during the run.
Fields§
§steps: u64Total scheduler steps executed.
auto_advances: u64Number of times virtual time was auto-advanced to the next pending timer or lab-reactor deadline.
total_wakeups: u64Total timer wakeups triggered by auto-advances.
time_start: TimeVirtual time at the start of the run.
time_end: TimeVirtual time at the end of the run.
virtual_elapsed_nanos: u64Total virtual nanoseconds elapsed during the run.
Implementations§
Source§impl VirtualTimeReport
impl VirtualTimeReport
Sourcepub const fn virtual_elapsed_ms(&self) -> u64
pub const fn virtual_elapsed_ms(&self) -> u64
Returns the virtual elapsed time in milliseconds.
Sourcepub const fn virtual_elapsed_secs(&self) -> u64
pub const fn virtual_elapsed_secs(&self) -> u64
Returns the virtual elapsed time in seconds.
Trait Implementations§
Source§impl Clone for VirtualTimeReport
impl Clone for VirtualTimeReport
Source§fn clone(&self) -> VirtualTimeReport
fn clone(&self) -> VirtualTimeReport
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 VirtualTimeReport
impl Debug for VirtualTimeReport
Source§impl PartialEq for VirtualTimeReport
impl PartialEq for VirtualTimeReport
impl Copy for VirtualTimeReport
impl Eq for VirtualTimeReport
impl StructuralPartialEq for VirtualTimeReport
Auto Trait Implementations§
impl Freeze for VirtualTimeReport
impl RefUnwindSafe for VirtualTimeReport
impl Send for VirtualTimeReport
impl Sync for VirtualTimeReport
impl Unpin for VirtualTimeReport
impl UnsafeUnpin for VirtualTimeReport
impl UnwindSafe for VirtualTimeReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).