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