refactor(irtt-client): modularize client components
This commit is contained in:
1 parent
6772a3def0
commit
7429beef79
6 files changed
+328
No files matched your search
@@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user