Skip to content

Conversation

sei0o
Copy link
Contributor

@sei0o sei0o commented Jun 16, 2025

applications/tests/test_ntp/src/lib.rs contains the test code.

Here we introduce some structs:

  • NtpTimestamp represents the timestamp defined in the specifications (e.g. RFC4330). SystemTime represents how long has it passed since unix epoch in nanoseconds. It can be converted to NtpTimestamp and vice versa.
  • SystemClock provides the interface for NTP daemons and managing the system clock. SystemClock::now() returns a SystemTime.

@sei0o sei0o requested a review from Koichi98 June 16, 2025 09:56
@sei0o sei0o self-assigned this Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant