Skip to main content

Crate rtime_clock

Crate rtime_clock 

Source
Expand description

System clock interfaces for the 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.
  • adjtimeadjtime/adjtimex slew and frequency adjustment.
  • phc — PTP hardware clock (PHC) access.
  • mock — an in-memory clock for testing.

Modules§

adjtime
Safe wrappers over the POSIX / Linux NTP kernel clock-adjustment APIs: adjtimex(2) (Linux), clock_adjtime(2) (Linux), and ntp_adjtime(3) (FreeBSD).
mock
phc
unix