docs: clarify timings

This commit is contained in:
Felix Spöttel
2021-12-30 11:34:27 +01:00
parent 00e482bf8a
commit 01f0749c9c
2 changed files with 10 additions and 4 deletions

View File

@@ -15,10 +15,10 @@ macro_rules! solve {
fn print_result<T: Display>(func: impl FnOnce(&str) -> T, input: &str) {
let timer = Instant::now();
let result = func(input);
let time = timer.elapsed();
let elapsed = timer.elapsed();
println!(
"{} {}(elapsed: {:.2?}){}",
result, ANSI_ITALIC, time, ANSI_RESET
result, ANSI_ITALIC, elapsed, ANSI_RESET
);
}