Add elapsed time to progress bar

This commit is contained in:
Devon Hollowood
2026-10-05 14:13:56 +02:00
committed by David Peter
parent f48f44b336
commit f39b497bdd
+1 -1
View File
@@ -15,7 +15,7 @@ pub fn get_progress_bar(length: u64, msg: &str, option: OutputStyleOption) -> Pr
OutputStyleOption::Basic | OutputStyleOption::Color => ProgressStyle::default_bar(),
_ => ProgressStyle::default_spinner()
.tick_chars(TICK_SETTINGS.0)
.template(" {spinner} {msg:<30} {wide_bar} ETA {eta_precise} ")
.template(" {spinner} {msg:<30} {wide_bar} Time: {elapsed} ETA {eta_precise} ")
.expect("no template error"),
};