package
0.6.7
Repository: https://github.com/aenix-io/talm.git
Documentation: pkg.go.dev

# Functions

NewSyncer creates new Syncer with default configuration.

# Constants

AdjustTimeLimit is a maximum time drift to compensate via adjtimex().
EpochLimit is a minimum time difference to signal that change as epoch change.
ExpectedAccuracy is the expected time sync accuracy, used to adjust poll interval.
MaxAllowablePoll is the maximum allowed interval for querying a time server.
MinAllowablePoll is the minimum time allowed for a client to query a time server.
RetryPoll is the interval between retries if the error is not Kiss-o-Death.

# Variables

Global instance of RTC clock because `rtc` doesn't support closing.
Global instance of RTC clock because `rtc` doesn't support closing.

# Structs

Measurement is a struct containing correction data based on a time request.
Syncer performs time sync via NTP on schedule.

# Type aliases

AdjustTimeFunc provides a function to adjust time.
CurrentTimeFunc provides a function which returns current time.
QueryFunc provides a function which performs NTP query.
SetTimeFunc provides a function to set system time.