rtime-clock 0.14.0

System clock interfaces (adjtime/adjtimex slew and step, PTP hardware clock) for the rTime NTP/PTP daemon
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! System clock interfaces for the [rTime](https://github.com/ZerosAndOnesLLC/rTime)
//! NTP/PTP time synchronization daemon.
//!
//! Abstracts the platform primitives used to read and steer the system clock — slewing
//! (`adjtime`/`adjtimex`), stepping (`clock_settime`), and reading PTP hardware clocks —
//! behind a common interface, with a [`mock`] backend for tests.
//!
//! # Modules
//!
//! - [`unix`] — the Unix system-clock backend.
//! - [`adjtime`] — `adjtime`/`adjtimex` slew and frequency adjustment.
//! - [`phc`] — PTP hardware clock (PHC) access.
//! - [`mock`] — an in-memory clock for testing.

pub mod adjtime;
pub mod mock;
pub mod phc;
pub mod unix;