mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-12 02:22:35 +00:00
Add elapsed time to progress bar
This commit is contained in:
committed by
David Peter
parent
f48f44b336
commit
f39b497bdd
@@ -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"),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user