- key: MessageKey {
- epoch: u32::from_be_bytes(value[0..=3].try_into().expect("I can't count")),
- device: u16::from_be_bytes(value[4..=5].try_into().expect("I can't count")),
- seq: u16::from_be_bytes(value[6..=7].try_into().expect("I can't count")),
- },
- t: SystemTime::now() - Duration::new(ago.into(), 0),
+ epoch: u32::from_be_bytes(value[0..=3].try_into().expect("I can't count")),
+ device: u16::from_be_bytes(value[4..=5].try_into().expect("I can't count")),
+ seq: u16::from_be_bytes(value[6..=7].try_into().expect("I can't count")),
+ t: press_time
+ .duration_since(UNIX_EPOCH)
+ .expect("Bad time?")
+ .as_secs(),