ntp

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	// contains filtered or unexported fields
}

NTP result.

func (*Result) FinalTs

func (r *Result) FinalTs() float64

NTP time the response from the server is received.

func (*Result) Offset

func (r *Result) Offset() float64

Clock offset between client and server in seconds.

func (*Result) OriginTs

func (r *Result) OriginTs() float64

NTP time the request was sent.

func (*Result) ReceiveTs

func (r *Result) ReceiveTs() float64

NTP time the server received the request.

func (*Result) Rtt

func (r *Result) Rtt() float64

Round trip time between client and server in seconds.

func (*Result) TransmitTs

func (r *Result) TransmitTs() float64

NTP time the server sent the response.

func (*Result) UnmarshalJSON

func (r *Result) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL