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