refactor(irtt-client): modularize client components

This commit is contained in:
Nils Andreas Svee committed 2026-05-10 20:56:43 +07:00
1 parent 6772a3def0
commit 7429beef79
6 files changed
+328

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
use std::time::{Instant, SystemTime};
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct ClientTimestamp {
pub wall: SystemTime,
pub mono: Instant,
}
impl ClientTimestamp {
pub fn now() -> Self {
Self {
wall: SystemTime::now(),
mono: Instant::now(),
}
}
}