time

module
v0.0.0-...-7c55a63 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0

README

Time

lint test codecov Go Report Card GitHub go.mod Go version GoDoc License

Contents

Documentation

Collection of Meta's Time Libraries such as NTP and PTP

cmd

All executables provided by this repo.

NTP

NTP-specific libraries, including protocol implementation.

PTP

PTP-specific libraries, including protocol implementation.

Leaphash

Utility package for computing the hash value of the official leap-second.list document

leapsectz

Utility package for obtaining leap second information from the system timezone database

PHC

Library to work with PTP Hardware Clock (PHC).

Timestamp

Library to work with NIC hardware/software timestamps.

oscillatord

Implementation of monitoring protocol used by Orolia oscillatord.

Calnex

Command line tool and library for a Calnex Sentinel device.

Caliper

Command line tool for parsing Luciol OTDR trace files when measuring system/cable latencies of Huber-Suhner GNSS-over-fiber systems

sa53

Command line tool and library for the Microchip SA53 atomic clock on Celestica time cards.

fbclock

Client C library and Go daemon to provide TrueTime API based on PTP time.

servo

Pi servo library

clock

Wrapper around CLOCK_ADJTIME syscall

NTRIP

NTRIP v1 SOURCE client library for pushing RTCM correction data to an NTRIP caster. Supports HTTP CONNECT proxy with TLS client certificate authentication.

ntripper

Command line tool that reads RTCM3 and UBX-RXM-RAWX data from an oscillatord Unix socket and pushes RTCM corrections to an NTRIP caster, generating MSM7 messages from raw observations when available.

RTCM

Parser and scanner for RTCM 10403.x (RTCM3) binary frames used for GNSS correction data. Includes CRC-24Q validation and stream synchronization.

License

time is licensed under Apache 2.0 as found in the LICENSE file.

Directories

Path Synopsis
calnex
api
cmd
Package clock contains a wrapper around CLOCK_ADJTIME syscall.
Package clock contains a wrapper around CLOCK_ADJTIME syscall.
cmd
c4u command
caliper command
calnex command
fbclock-daemon command
ntpcheck command
CLI to perform various NTP-related tasks
CLI to perform various NTP-related tasks
ntpcheck/checker
Package checker provides an easy way to talk to NTPD/Chronyd and get NTPCheckResult, which abstracts away Chrony/NTP control protocol implementation details and contains tons of information useful for NTP monitoring, like NTP server variables including offset, peers and their variables and statuses.
Package checker provides an easy way to talk to NTPD/Chronyd and get NTPCheckResult, which abstracts away Chrony/NTP control protocol implementation details and contains tons of information useful for NTP monitoring, like NTP server variables including offset, peers and their variables and statuses.
ntpresponder command
ntripper command
ntripper reads RTCM3 and UBX-RXM-RAWX data from an oscillatord Unix socket and pushes RTCM corrections to an NTRIP caster using the SOURCE protocol.
ntripper reads RTCM3 and UBX-RXM-RAWX data from an oscillatord Unix socket and pushes RTCM corrections to an NTRIP caster using the SOURCE protocol.
pshark command
ptp4u command
ptpcheck command
sptp command
sptp-exporter command
testchrony command
ziffy command
cmd
Package cmd hosts the gnssfw cobra root command and its subcommands.
Package cmd hosts the gnssfw cobra root command and its subcommands.
detect
Package detect resolves the OCP TimeCard's u-blox GNSS receiver serial port from sysfs.
Package detect resolves the OCP TimeCard's u-blox GNSS receiver serial port from sysfs.
ubx
Package ubx provides a thin Go wrapper around the upstream `cfgtool` CLI from the open-source ubloxcfg library (Philippe Kehl, https://oinkzwurgl.org/hacking/ubloxcfg/, EPEL package: ubloxcfg).
Package ubx provides a thin Go wrapper around the upstream `cfgtool` CLI from the open-source ubloxcfg library (Philippe Kehl, https://oinkzwurgl.org/hacking/ubloxcfg/, EPEL package: ubloxcfg).
Package hostendian provides way to check the endianness of the machine this code is running on.
Package hostendian provides way to check the endianness of the machine this code is running on.
Package leaphash is a utility package for computing the hash value of the official leap-second.list document
Package leaphash is a utility package for computing the hash value of the official leap-second.list document
Package leapsectz is a utility package for obtaining leap second information from the system timezone database
Package leapsectz is a utility package for obtaining leap second information from the system timezone database
ntp
chrony
Package chrony implements Chrony (https://chrony.tuxfamily.org) network protocol v6 used for monitoring of the timeserver.
Package chrony implements Chrony (https://chrony.tuxfamily.org) network protocol v6 used for monitoring of the timeserver.
control
Package control implements NTP Control Protocol (RFC1305, Appendix B).
Package control implements NTP Control Protocol (RFC1305, Appendix B).
protocol
Package protocol implements ntp packet and basic functions to work with.
Package protocol implements ntp packet and basic functions to work with.
protocol/nts
Package nts implements the Network Time Security extension fields defined by RFC 8915 §5.
Package nts implements the Network Time Security extension fields defined by RFC 8915 §5.
responder/announce
Package announce implements announcement of server IPs.
Package announce implements announcement of server IPs.
responder/checker
Package checker implements checking mechanism of server aliveness.
Package checker implements checking mechanism of server aliveness.
responder/server
Package server implements simple UDP server to work with NTP packets.
Package server implements simple UDP server to work with NTP packets.
responder/stats
Package stats implements statistics collection and reporting.
Package stats implements statistics collection and reporting.
shm
Package ntrip provides an NTRIP client for pushing RTCM correction data to an NTRIP caster.
Package ntrip provides an NTRIP client for pushing RTCM correction data to an NTRIP caster.
Package oscillatord implements monitoring protocol used by Orolia's oscillatord, daemon for disciplining an oscillator.
Package oscillatord implements monitoring protocol used by Orolia's oscillatord, daemon for disciplining an oscillator.
phc
Package phc contains code to work with PTP Hardware Clock (PHC).
Package phc contains code to work with PTP Hardware Clock (PHC).
ptp
c4u
c4u/stats
Package stats implements statistics collection and reporting.
Package stats implements statistics collection and reporting.
pdelay
Package pdelay implements PTP Peer Delay measurement for in-rack linearizability checks.
Package pdelay implements PTP Peer Delay measurement for in-rack linearizability checks.
protocol
Package protocol implements a subset of the PTPv2.1 protocol (IEEE 1588-2019).
Package protocol implements a subset of the PTPv2.1 protocol (IEEE 1588-2019).
ptp4u/server
Package server implements simple Unicast PTP UDP server.
Package server implements simple Unicast PTP UDP server.
ptp4u/stats
Package stats implements statistics collection and reporting.
Package stats implements statistics collection and reporting.
simpleclient
Package simpleclient provides very simplistic PTPv2 unicast client.
Package simpleclient provides very simplistic PTPv2 unicast client.
Package rtcm provides parsing of RTCM 10403.x (RTCM3) binary frames used for GNSS correction data.
Package rtcm provides parsing of RTCM 10403.x (RTCM3) binary frames used for GNSS correction data.
cmd
preflight
Package preflight refuses to start a poll session when another process already has the SA53 tty open.
Package preflight refuses to start a poll session when another process already has the SA53 tty open.
rawlog
Package rawlog records the exact bytes sent to and received from the SA53 over the serial port.
Package rawlog records the exact bytes sent to and received from the SA53 over the serial port.
upgrade
Package upgrade applies SA53 firmware to the local Celestica time card over serial/XModem.
Package upgrade applies SA53 firmware to the local Celestica time card over serial/XModem.

Jump to

Keyboard shortcuts

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