Remove unneeded std::time::Instant imports
This commit is contained in:
parent
5fb0095dc6
commit
b905c5b69b
@ -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());
|
||||||
|
@ -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");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user