tangled
alpha
login
or
join now
thecoded.prof
/
aoc
0
fork
atom
Advent of Code
0
fork
atom
overview
issues
pulls
pipelines
feat: add parse time to output
thecoded.prof
3 months ago
1a39daec
4a7192ae
verified
This commit was signed with the committer's
known signature
.
thecoded.prof
SSH Key Fingerprint:
SHA256:ePn0u8NlJyz3J4Zl9MHOYW3f4XKoi5K1I4j53bwpG0U=
+13
-1
1 changed file
expand all
collapse all
unified
split
2025
src
lib.rs
+13
-1
2025/src/lib.rs
···
19
19
RA: Display,
20
20
RB: Display,
21
21
{
22
22
+
let label_parse = format!("{name} Parse");
23
23
+
let parse_start = Instant::now();
22
24
let input = parse(&fs::read_to_string(input_path)?);
25
25
+
let parse_elapsed = parse_start.elapsed();
26
26
+
println!("{label_parse}");
27
27
+
println!("{}", "-".repeat(label_parse.len()));
28
28
+
println!("Parse time: {:?}", parse_elapsed);
29
29
+
30
30
+
println!();
23
31
24
32
let label_a = format!("{name} Part A");
25
33
println!("{label_a}");
···
41
49
42
50
println!();
43
51
44
44
-
println!("Total time: {:?}", part_a_elapsed + part_b_elapsed);
52
52
+
println!("Challenge time: {:?}", part_a_elapsed + part_b_elapsed);
53
53
+
println!(
54
54
+
"Total time: {:?}",
55
55
+
part_a_elapsed + part_b_elapsed + parse_elapsed
56
56
+
);
45
57
46
58
Ok(())
47
59
}