Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/facebook/time
/ functions
Functions
3,016 in github.com/facebook/time
⨍
Functions
3,016
◇
Types & classes
540
↓ 6 callers
Function
CalculateJitter
CalculateJitter returns a random duration between 0 and maxJitter
cmd/ptpcheck/cmd/pdelay.go:73
↓ 6 callers
Method
ClockID
ClockID derives the clock ID from the file descriptor number - see clock_gettime(3), FD_TO_CLOCKID macros
phc/device.go:45
↓ 6 callers
Method
Communicate
(packet chrony.RequestPacket)
cmd/ntpcheck/checker/chrony.go:62
↓ 6 callers
Function
CurrentDataSetRequest
CurrentDataSetRequest prepares request packet for CURRENT_DATA_SET request
ptp/protocol/management_tlvs.go:241
↓ 6 callers
Function
Dscmp2
Dscmp2 finds better Announce based on network topology
ptp/sptp/bmc/bmc.go:40
↓ 6 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
ptp/linearizability/udpconn_mock_test.go:118
↓ 6 callers
Function
FetchStats
FetchStats returns populated Stats structure fetched from the url
ptp/sptp/stats/stats.go:115
↓ 6 callers
Method
FetchStats
FetchStats fetches GMs via http
fbclock/daemon/datafetcher_http.go:55
↓ 6 callers
Method
FetchStatus
FetchStatus returns the calnex status
calnex/api/api.go:724
↓ 6 callers
Function
GenerateSVG
GenerateSVG creates an SVG plot of the full OTDR trace with peaks annotated
caliper/svg.go:41
↓ 6 callers
Function
NewBitReader
NewBitReader creates a BitReader over the given byte slice.
rtcm/bits.go:26
↓ 6 callers
Function
NewMixedScanner
NewMixedScanner creates a scanner that reads both RTCM3 and UBX frames.
rtcm/mixed_scanner.go:48
↓ 6 callers
Function
NewMockFrequencyGetter
NewMockFrequencyGetter creates a new mock instance.
phc/pps_mock_test.go:321
↓ 6 callers
Function
NormalizeData
NormalizeData turns bytes that contain kv ASCII string info a map[string]string
ntp/control/packet.go:35
↓ 6 callers
Function
Parse
Parse returns the list of leap seconds from srcfile. Pass "" to use default file
leapsectz/leapsectz.go:77
↓ 6 callers
Function
ParseRawx
ParseRawx decodes a UBX-RXM-RAWX payload into an epoch with observations.
rtcm/ubx.go:103
↓ 6 callers
Method
Pos
Pos returns the current bit position.
rtcm/bits.go:57
↓ 6 callers
Function
ProcessMonitoringResults
ProcessMonitoringResults returns map of metrics based on TestResults
ptp/linearizability/linearizability.go:45
↓ 6 callers
Method
ReadPacketWithRXTimestampBuf
(buf, oob []byte)
ptp/sptp/client/connection.go:43
↓ 6 callers
Function
SetLeapFile
SetLeapFile overrides the default leap second file path. Pass "" to reset.
leapsectz/leapsectz.go:37
↓ 6 callers
Method
SetServoState
(state int)
ptp/sptp/client/stats.go:36
↓ 6 callers
Method
Signaling
Signaling returns ptp Signaling packet granting the requested subscription
ptp/ptp4u/server/subscription.go:421
↓ 6 callers
Function
SockaddrToPort
SockaddrToPort converts socket address to an IP Somewhat copy from https://github.com/golang/go/blob/658b5e66ecbc41a49e6fb5aa63c5d9c804cf305f/src/net/
timestamp/timestamp.go:233
↓ 6 callers
Method
Start
Start launches the HTTP server and a background goroutine that computes per-second rates.
cmd/ntripper/stats/json.go:44
↓ 6 callers
Method
UBXMsgID
UBXMsgID returns the UBX message ID.
rtcm/mixed_scanner.go:194
↓ 6 callers
Method
UBXPayload
UBXPayload returns the UBX payload (valid only when Type() == MsgUBX).
rtcm/mixed_scanner.go:184
↓ 6 callers
Function
Worst
Worst finding worst case clock quality from supplied data points
ptp/c4u/clock/clock.go:72
↓ 6 callers
Function
Write
Write dumps arrays of leap seconds into file with newly created header
leapsectz/leapsectz.go:247
↓ 6 callers
Function
aeadFor
aeadFor builds an AEAD for the given algorithm using a deterministic, correctly-sized key so tests can seal and open without external key material.
ntp/protocol/nts/aead_test.go:28
↓ 6 callers
Function
colNumber
(header []string, colName string)
cmd/ziffy/node/print.go:231
↓ 6 callers
Function
detectGNSSSerialFrom
detectGNSSSerialFrom is the testable variant of GNSSSerial.
gnss/detect/detect.go:86
↓ 6 callers
Method
doWork
(shm *fbclock.Shm, data *DataPoint)
fbclock/daemon/daemon.go:395
↓ 6 callers
Function
fbclock_calculate_time_past_v2
Like fbclock_calculate_time_v2 but for the REALTIME-domain anchor section, with a caller-provided ts (CLOCK_REALTIME ns). The caller's ts is typically
fbclock/fbclock.c:438
↓ 6 callers
Function
fbclock_pct2ns
fbclock/fbclock.c:242
↓ 6 callers
Method
fillStaticHeaders
fillStaticHeaders pre-sets all the headers per worker which will never change numbers are taken from tcpdump.
ntp/responder/server/server.go:252
↓ 6 callers
Function
getAlternateResponsePortTLV
(client *Client)
ptp/sptp/client/asymmetry.go:193
↓ 6 callers
Method
handlePDelayReq
handlePDelayReq responds to a Pdelay_Req message with Pdelay_Resp and Pdelay_Resp_Follow_Up This implements the responder side of peer delay measureme
ptp/sptp/client/sptp.go:252
↓ 6 callers
Function
oscillatorStateFromStatus
https://datatracker.ietf.org/doc/html/rfc8173#section-7.6.2.4 https://datatracker.ietf.org/doc/html/rfc8173#section-7.6.2.5
ptp/c4u/clock/oscillatord.go:37
↓ 6 callers
Function
reverse
(s []byte)
timestamp/timestamp_linux_test.go:31
↓ 6 callers
Function
selectNonLinkLocalAddr
selectNonLinkLocalAddr returns the first global unicast IPv6 address from addrs. Returns error if no suitable address is found.
cmd/ptpcheck/cmd/pdelay.go:158
↓ 6 callers
Method
setPinFunc
(index uint, pf int, ch uint)
phc/pps_source.go:82
↓ 6 callers
Method
takeDataPoint
(n int)
fbclock/daemon/state.go:79
↓ 5 callers
Function
ActivatePPSSource
ActivatePPSSource configures the PHC device to be a PPS timestamp source
phc/pps_source.go:113
↓ 5 callers
Function
BytesToPacket
BytesToPacket converts []bytes to Packet
ntp/protocol/packet.go:135
↓ 5 callers
Method
Check
Check is a method which performs basic validations that responder is alive
ntp/responder/server/interfaces.go:67
↓ 5 callers
Function
ClockAdjtime
ClockAdjtime is not supported on non-linux.
phc/unix/notlinux.go:47
↓ 5 callers
Method
Close
Close flushes the internal buffer. The underlying writer is not closed here; the caller owns its lifecycle.
sa53/rawlog/rawlog.go:67
↓ 5 callers
Method
CurrentDataSet
CurrentDataSet sends CURRENT_DATA_SET request and returns response
ptp/protocol/management_client.go:107
↓ 5 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
ptp/linearizability/udpconn_mock_test.go:50
↓ 5 callers
Function
Enable
Enable dscp on the fd
dscp/dscp.go:26
↓ 5 callers
Method
Equals
Equals compares two bundles and returns true if they both contain exactly the same certificates.
calnex/cert/cert.go:140
↓ 5 callers
Method
Err
Err returns the first non-EOF error.
rtcm/mixed_scanner.go:199
↓ 5 callers
Method
Explain
()
ptp/linearizability/linearizability.go:30
↓ 5 callers
Function
Export
Export data from the device about specified channels to the specified output
calnex/export/export.go:50
↓ 5 callers
Method
FindSubscription
FindSubscription retrieves an existing client
ptp/ptp4u/server/worker.go:361
↓ 5 callers
Method
FindSysPeer
FindSysPeer returns sys.peer (main source of NTP information for server)
cmd/ntpcheck/checker/checkresult.go:42
↓ 5 callers
Method
Firmware
Firmware checks target Calnex firmware version and upgrades if apply is specified Returns err if there is a failure at any point in the process
calnex/firmware/firmware.go:93
↓ 5 callers
Method
FormatFWVersion
FormatFWVersion return string representation of firmware version
sa53/protocol/protocol.go:231
↓ 5 callers
Method
Frame
Frame returns the RTCM3 frame (valid only when Type() == MsgRTCM3).
rtcm/mixed_scanner.go:179
↓ 5 callers
Method
GetAssociationInfo
GetAssociationInfo returns parsed normalized variables if present
ntp/control/packet.go:363
↓ 5 callers
Method
GetMaxFreq
GetMaxFreq gets current configured max frequency
servo/pi.go:138
↓ 5 callers
Method
HasError
HasError returns true if packet has error flag set
ntp/control/packet.go:317
↓ 5 callers
Method
HasMore
HasMore returns true if packet has More flag set
ntp/control/packet.go:322
↓ 5 callers
Method
IncReload
IncReload atomically add 1 to the counter
ptp/ptp4u/stats/json.go:141
↓ 5 callers
Method
IncSubscription
IncSubscription atomically add 1 to the counter
ptp/ptp4u/stats/json.go:101
↓ 5 callers
Method
IncTX
IncTX atomically add 1 to the counter
ptp/ptp4u/stats/json.go:111
↓ 5 callers
Method
IncTXDelayReq
()
ptp/sptp/client/stats.go:41
↓ 5 callers
Method
IsSA5x
IsSA5x returns true if the detected time card uses an SA5x (Celestica) oscillator
sa53/detect/detect.go:59
↓ 5 callers
Method
Less
Less reports whether p sorts before q. Port identities sort first by clock identity, then their port numbers.
ptp/protocol/types.go:279
↓ 5 callers
Function
MarshalAuthenticatorBody
MarshalAuthenticatorBody serializes nonce and ciphertext into the authenticator EF body wire format defined by RFC 8915 §5.6. Nonce and ciphertext are
ntp/protocol/nts/authenticator.go:93
↓ 5 callers
Method
MarshalText
MarshalText timestamp to byte slice
timestamp/timestamp.go:70
↓ 5 callers
Function
NewJSONStats
NewJSONStats creates a new JSONStats instance.
cmd/ntripper/stats/json.go:38
↓ 5 callers
Function
NewLogger
NewLogger wraps w in a buffered writer and emits a "MARK sa53 poll start" line so the file always begins with a recognizable header.
sa53/rawlog/rawlog.go:44
↓ 5 callers
Function
NewNTPDataPacket
NewNTPDataPacket creates new packet to request 'ntp data' information for given peer IP
ntp/chrony/packet.go:1059
↓ 5 callers
Function
NewServerStatsPacket
NewServerStatsPacket creates new packet to request 'serverstats' information
ntp/chrony/packet.go:1085
↓ 5 callers
Function
NewSockaddrWithPort
NewSockaddrWithPort creates a new socket address with the same IP and new port
timestamp/timestamp.go:244
↓ 5 callers
Function
NewStats
NewStats created new instance of Stats
ptp/sptp/client/stats.go:87
↓ 5 callers
Function
ReadPacketWithRXTimestamp
ReadPacketWithRXTimestamp returns byte packet and HW RX timestamp
timestamp/timestamp.go:140
↓ 5 callers
Method
Seal
Seal encrypts and authenticates plaintext, binding it to ad. It returns the nonce (possibly empty) and ciphertext to place in the Authenticator's Nonc
ntp/protocol/nts/aead.go:37
↓ 5 callers
Method
Set
Set adds check to the runlist
ntp/responder/server/config.go:51
↓ 5 callers
Method
SetExpire
SetExpire atomically sets expire
ptp/ptp4u/server/subscription.go:167
↓ 5 callers
Method
Snapshot
Snapshot the values so they can be reported atomically
ptp/c4u/stats/json.go:55
↓ 5 callers
Method
StopMeasure
StopMeasure stops measurement
calnex/api/api.go:973
↓ 5 callers
Method
String
()
ptp/simpleclient/client.go:48
↓ 5 callers
Method
TimeNs
TimeNs converts distance in meters to time in nanoseconds using the refractive index
caliper/tor.go:64
↓ 5 callers
Method
UBXClass
UBXClass returns the UBX message class.
rtcm/mixed_scanner.go:189
↓ 5 callers
Method
UnmarshalText
UnmarshalText timestamp from byte slice
timestamp/timestamp.go:98
↓ 5 callers
Method
UnmarshalText
UnmarshalText parses ClockClass from a config string
oscillatord/monitoring.go:174
↓ 5 callers
Method
UpdateCounterBy
UpdateCounterBy will increment counter
fbclock/stats/stats.go:47
↓ 5 callers
Method
Valid
Valid returns true if all timestamps are set
ptp/pdelay/pdelay.go:92
↓ 5 callers
Method
Validate
Validate BackoffConfig is sane
ptp/sptp/client/config.go:57
↓ 5 callers
Method
Validate
Validate config is sane
ptp/sptp/client/config.go:166
↓ 5 callers
Method
Value
Value decodes IntFloat to float64
ptp/protocol/types.go:127
↓ 5 callers
Method
aggregateDataPointsMax
(n int)
fbclock/daemon/state.go:94
↓ 5 callers
Function
buildEph
buildEph builds GPS LNAV subframes 1-3 for a satellite with a consistent IODE/IODC. The optional fields callback sets additional ephemeris values.
rtcm/ephemeris_test.go:48
↓ 5 callers
Function
buildUBXFrame
buildUBXFrame wraps a payload in a UBX frame (sync, class, id, length, payload, Fletcher-8 checksum).
rtcm/ubx_test.go:64
↓ 5 callers
Function
checkPacketLength
(p *Header, l int)
ptp/protocol/protocol.go:124
↓ 5 callers
Function
detectGNSSSerialFromGlob
detectGNSSSerialFromGlob is the testable variant of GNSSSerialFromPCI. It accepts a filepath.Glob pattern, requires exactly one match, and reads the m
gnss/detect/detect.go:101
↓ 5 callers
Function
exactFactor
exactFactor numerically computes the one-sided normal tolerance factor t'_{n-1, sqrt(n)*zp}(gamma)/sqrt(n) for n >= 2 (NaN for n < 2, the genuine boun
fbclock/daemon/gradualwindow.go:301
↓ 5 callers
Function
fbclock_window_of_uncertainty
fbclock/fbclock.c:350
← previous
next →
301–400 of 3,016, ranked by callers