node_exporter/vendor/github.com/beevik/ntp
Tobias Schmidt ce117d7a40 Update vendored packages 2017-02-28 18:20:24 -04:00
..
CONTRIBUTORS Use the offset calculation that includes round trip time in the ntp collector 2016-06-01 08:56:20 +01:00
LICENSE Vendor all dependencies 2016-01-21 16:41:53 -05:00
README.md Update vendored packages 2017-02-28 18:20:24 -04:00
ntp.go Update vendored packages 2017-02-28 18:20:24 -04:00

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)