Remove unneeded std::time::Instant imports

This commit is contained in:
Tyler Hallada 2021-12-01 09:59:31 -05:00
parent 5fb0095dc6
commit b905c5b69b
2 changed files with 2 additions and 5 deletions

View File

@ -1,12 +1,10 @@
use std::time::Instant;
#[macro_export] #[macro_export]
macro_rules! instrument { macro_rules! instrument {
($part1:expr, $part2:expr) => { ($part1:expr, $part2:expr) => {
let mut now = Instant::now(); let mut now = std::time::Instant::now();
println!("Part 1: {}", $part1); println!("Part 1: {}", $part1);
println!("(elapsed: {:?})", now.elapsed()); println!("(elapsed: {:?})", now.elapsed());
now = Instant::now(); now = std::time::Instant::now();
println!(""); println!("");
println!("Part 2: {}", $part2); println!("Part 2: {}", $part2);
println!("(elapsed: {:?})", now.elapsed()); println!("(elapsed: {:?})", now.elapsed());

View File

@ -1,6 +1,5 @@
use anyhow::Result; use anyhow::Result;
use common::instrument; use common::instrument;
use std::time::Instant;
const INPUT: &str = include_str!("input/input.txt"); const INPUT: &str = include_str!("input/input.txt");