timedrift

package
v0.0.0-...-9e7e4f5 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

The timedrift module evaluate the local time of a target against

network time retrieved using NTP.

Usage documentation is online at http://mig.mozilla.org/doc/module_timedrift.html

Index

Constants

This section is empty.

Variables

View Source
var NtpBackupPool = []string{
	`time.nist.gov`,
	`0.pool.ntp.org`,
	`1.pool.ntp.org`,
	`2.pool.ntp.org`,
	`3.pool.ntp.org`}

Functions

func GetNetworkTime

func GetNetworkTime(host string) (t time.Time, latency string, err error)

GetNetworkTime queries a given NTP server to obtain the network time

Types

This section is empty.

Jump to

Keyboard shortcuts

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