pub struct TimeStats {
pub total_duration_secs: i64,
pub completed_tasks: usize,
pub average_duration_secs: Option<i64>,
pub current_elapsed_secs: i64,
pub in_progress_tasks: usize,
}Expand description
Time statistics for all tasks
Fields§
§total_duration_secs: i64Sum of all completed task durations in seconds.
completed_tasks: usizeNumber of completed tasks.
average_duration_secs: Option<i64>Average task duration in seconds.
current_elapsed_secs: i64Total elapsed time for in-progress tasks in seconds.
in_progress_tasks: usizeNumber of currently in-progress tasks.
Implementations§
Source§impl TimeStats
impl TimeStats
Sourcepub fn format_total(&self) -> String
pub fn format_total(&self) -> String
Format total duration as human-readable string
Sourcepub fn format_average(&self) -> String
pub fn format_average(&self) -> String
Format average duration as human-readable string
Sourcepub fn format_elapsed(&self) -> String
pub fn format_elapsed(&self) -> String
Format current elapsed time (in-progress tasks)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimeStats
impl RefUnwindSafe for TimeStats
impl Send for TimeStats
impl Sync for TimeStats
impl Unpin for TimeStats
impl UnsafeUnpin for TimeStats
impl UnwindSafe for TimeStats
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