feat: add total timing

This commit is contained in:
Felix Spöttel
2021-12-29 19:14:40 +01:00
parent 7430afb606
commit 8441cb2fde
4 changed files with 123 additions and 26 deletions

View File

@@ -81,10 +81,25 @@ cargo run --bin <day>
To run an optimized version for benchmarking, use the `--release` flag or the alias `cargo rr --bin <day>`.
### Run all solutions
### Run solutions for all days
```sh
cargo run
# output:
# Running `target/release/aoc`
# ----------
# | Day 01 |
# ----------
# 🎄 Part 1 🎄
#
# 0 (elapsed: 170.00µs)
#
# 🎄 Part 2 🎄
#
# 0 (elapsed: 30.00µs)
# <...other days...>
# Total: 0.20ms
```
To run an optimized version for benchmarking, use the `--release` flag or the alias `cargo rr`.