You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
node_exporter/vendor/github.com/beevik/ntp
Tobias Schmidt ce117d7a40
Update vendored packages
8 years ago
..
CONTRIBUTORS Use the offset calculation that includes round trip time in the ntp collector 9 years ago
LICENSE Vendor all dependencies 9 years ago
README.md Update vendored packages 8 years ago
ntp.go Update vendored packages 8 years ago

README.md

Build Status GoDoc

ntp

The ntp package is an implementation of a simple NTP client. It allows you to connect to a remote NTP server and request the current time.

To request the current time using version 4 of the NTP protocol, simply do the following:

time, err := ntp.Time("0.pool.ntp.org")

To request the current time along with additional metadata, use the Query function:

response, err := ntp.Query("0.pool.ntp.org", 4)