mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
fix: Fix statime-linux imports and clock instantiation
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
This commit is contained in:
parent
3b168c8033
commit
66471270d0
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ use statime::{
|
||||||
time::{Duration as PtpDuration, Interval},
|
time::{Duration as PtpDuration, Interval},
|
||||||
OverlayClock, PtpInstance, SharedClock,
|
OverlayClock, PtpInstance, SharedClock,
|
||||||
};
|
};
|
||||||
use statime_linux::{LinuxUdpHandles, SystemClock};
|
use statime_linux::{clock::SystemClock, net::udp::LinuxUdpHandles};
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
use tokio::time::{sleep, Instant};
|
use tokio::time::{sleep, Instant};
|
||||||
|
|
@ -94,7 +94,7 @@ async fn run_ptp_session(
|
||||||
};
|
};
|
||||||
|
|
||||||
// 4. Create Clock and Filter
|
// 4. Create Clock and Filter
|
||||||
let clock = SharedClock::new(OverlayClock::new(SystemClock));
|
let clock = SharedClock::new(OverlayClock::new(SystemClock::new()));
|
||||||
let filter_config = 0.1; // Filter coefficient
|
let filter_config = 0.1; // Filter coefficient
|
||||||
|
|
||||||
// 5. Create network handles
|
// 5. Create network handles
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue