Added 'benchmarking' to projecteuler 082 and 083

This commit is contained in:
2023-02-09 00:06:03 +01:00
parent 72f1368eda
commit 8ddefb903e
2 changed files with 6 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
use std::collections::HashMap;
use std::time::Instant;
use nom::{
bytes::streaming::tag,
@@ -17,6 +18,7 @@ fn parse_input(input: &str) -> IResult<&str, Vec<Vec<u32>>> {
fn main() {
println!("Hello, this is Patrick");
let now = Instant::now();
let input_text = include_str!("../matrix.txt");
let (_input, matrix) = parse_input(input_text).unwrap();
@@ -49,4 +51,5 @@ fn main() {
);
println!("The minimal path is: {}", minimal_path.unwrap().1);
println!("Executed in {:?}", now.elapsed());
}