use std::time::{Duration, SystemTime};
const MESSAGE_SIZE: usize = 12;
+const LOGFILENAME: &str = "log.csv";
#[derive(Eq, Debug, Hash, PartialEq, Serialize)]
struct MessageKey {
let logfile = std::fs::OpenOptions::new()
.create(true)
.append(true)
- .open("log.csv")
+ .open(LOGFILENAME)
.expect("Coudln't open log file");
let mut log = csv::Writer::from_writer(logfile);
let mut presses = HashMap::<MessageKey, Range>::new();