Skip to content

Releases: beevik/ntp

Release v0.3.3

04 May 23:35
af4a82b
Compare
Choose a tag to compare

Changes

  • Change go.mod go directive to use go 1.13 as a minimal version.

Release 0.3.2

02 May 17:41
f19873c
Compare
Choose a tag to compare

Changes

  • Rename unit tests to enable easier test filtering.

Release v0.3.0

19 Mar 18:14
6f90c4d
Compare
Choose a tag to compare

There have been no breaking changes or further deprecations since the
previous release.

Changes

  • Fixed a bug in the calculation of NTP timestamps. (9bcd064)

Release v0.2.0

20 Oct 00:04
62c80a0
Compare
Choose a tag to compare

There are no breaking changes or further deprecations in this release.

Changes

  • Added KissCode to the Response structure.

Release v0.1.1

03 Oct 23:15
802074b
Compare
Choose a tag to compare

Breaking changes

  • Removed the MaxStratum constant.

Deprecations

  • Officially deprecated the TimeV function.

Internal changes

  • Removed minDispersion from the RootDistance calculation, since the value was arbitrary.
  • Moved some validation into main code path so that invalid TransmitTime and mode responses trigger an error even when Response.Validate is not called.

Release v0.1.0

30 Sep 20:45
0c8f046
Compare
Choose a tag to compare

This is the initial release of the ntp package. Currently it supports the following features:

  • Time() to query the current time according to a remote NTP server.
  • Query() to query multiple pieces of time-related information from a remote NTP server.
  • QueryWithOptions(), which is like Query() but with the ability to override default query options.

Time-related information returned by the Query functions includes:

  • Time: the time the server transmitted its response, according to the server's clock.
  • ClockOffset: the estimated offset of the client's clock relative to the server's clock. You may apply this offset to any local system clock reading once the query is complete.
  • RTT: an estimate of the round-trip-time delay between the client and the server.
  • Precision: the precision of the server's clock reading.
  • Stratum: the "stratum" level of the server, where 1 indicates a server directly connected to a reference clock, and values greater than 1 indicating the number of hops from the reference clock.
  • ReferenceID: A unique identifier for the NTP server that was contacted.
  • ReferenceTime: The time at which the server last updated its local clock setting.
  • RootDelay: The server's round-trip delay to the reference clock.
  • RootDispersion: The server's total dispersion to the referenced clock.
  • RootDistance: An estimate of the root synchronization distance.
  • Leap: The leap second indicator.
  • MinError: A lower bound on the clock error between the client and the server.
  • Poll: the maximum polling interval between successive messages on the server.

The Response structure returned by the Query functions also contains a Response.Validate() function that returns an error if any of the fields returned by the server are invalid.