mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-06 19:35:13 +02:00
Format execution time output in seconds instead of milliseconds in main.rs.
This commit is contained in:
parent
487ccbba8b
commit
47d850843c
1 changed files with 2 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
|
||||
commands::handle_command(cli.command, database_dir, &mut config)?;
|
||||
|
||||
let elapsed = now.elapsed().as_millis();
|
||||
println!("{} in {} ms.",
|
||||
let elapsed: f32 = now.elapsed().as_millis() as f32 / 1000f32;
|
||||
println!("{} in {} s.",
|
||||
style("Finished").green().bold(),
|
||||
style(elapsed).white().bold());
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue