1use std::time::{Instant, SystemTime};
2
3#[derive(Debug, Clone, Copy, PartialEq, Eq)]
4pub struct ClientTimestamp {
5 pub wall: SystemTime,
6 pub mono: Instant,
7}
8
9impl ClientTimestamp {
10 pub fn now() -> Self {
11 Self {
12 wall: SystemTime::now(),
13 mono: Instant::now(),
14 }
15 }
16}