Skip to content

Commit

Permalink
rusk: remove timing for subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
herr-seppia committed Nov 9, 2023
1 parent 1b2c779 commit b05796b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions rusk/src/bin/args/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use clap::builder::BoolishValueParser;
use clap::Subcommand;
use rusk_recovery_tools::Theme;
use std::io;
use std::time::Instant;
use tracing::info;

#[allow(clippy::large_enum_variant)]
Expand Down Expand Up @@ -53,8 +52,6 @@ impl Command {
}

pub fn run(self) -> Result<(), Box<dyn std::error::Error>> {
let begin = Instant::now();

let theme = Theme::default();

Self::display_env(&theme)?;
Expand All @@ -76,10 +73,6 @@ impl Command {
tracing::error!("{} {e}", theme.error("Error"));
}

let finished = theme.action("Finished");
let elapsed = begin.elapsed().as_secs_f32();
info!("{finished} task in {elapsed:.2}s",);

result
}
}

0 comments on commit b05796b

Please sign in to comment.