pub struct TimeCommand {
pub posix_format: bool,
pub command: Option<Box<Command>>,
pub span: Span,
}Expand description
Time command - wraps a command and measures its execution time.
Note: BashKit only supports wall-clock time measurement. User/system CPU time is not tracked (always reported as 0). This is a known incompatibility with bash.
Fields§
§posix_format: boolUse POSIX output format (-p flag)
command: Option<Box<Command>>The command to time (optional - timing with no command is valid)
span: SpanSource span of this command
Trait Implementations§
Source§impl Clone for TimeCommand
impl Clone for TimeCommand
Source§fn clone(&self) -> TimeCommand
fn clone(&self) -> TimeCommand
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 moreAuto Trait Implementations§
impl Freeze for TimeCommand
impl RefUnwindSafe for TimeCommand
impl Send for TimeCommand
impl Sync for TimeCommand
impl Unpin for TimeCommand
impl UnwindSafe for TimeCommand
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