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
↓ 14 callers
Function
NewMockServo
NewMockServo creates a new mock instance.
ptp/sptp/client/servo_mock_test.go:42
↓ 14 callers
Function
SetupMocks
(t *testing.T)
phc/pps_source_test.go:37
↓ 14 callers
Method
String
String returns all channels
calnex/api/api.go:384
↓ 14 callers
Function
TelcoDscmp
TelcoDscmp finds better Announce based on Announce response content and local priorities
ptp/sptp/bmc/bmc.go:117
↓ 14 callers
Method
latest
we take last complete sample of sync/followup data and last complete sample of delay req/resp data to calculate delay and offset
ptp/sptp/client/measurements.go:200
↓ 14 callers
Method
processResults
(results map[netip.Addr]*RunResult)
ptp/sptp/client/sptp.go:478
↓ 13 callers
Function
Dscmp
Dscmp finds better Announce based on Announce response content
ptp/sptp/bmc/bmc.go:90
↓ 13 callers
Function
EncodeMSM7
EncodeMSM7 generates an RTCM MSM7 frame for one constellation from RAWX observations. Only observations matching gnssID are included. stationID and ep
rtcm/msm_encode.go:64
↓ 13 callers
Function
MakeREMOp
MakeREMOp composes uint8 with response error and more bits set, combined with operation code
ntp/control/packet.go:286
↓ 13 callers
Method
MarshalBinary
MarshalBinary converts ptptext to []bytes
ptp/protocol/types.go:609
↓ 13 callers
Function
NewClient
NewClient creates a new NTRIP client with the given configuration.
ntrip/client.go:104
↓ 13 callers
Function
Parse
Parse parses the supplied byte array to check it is a valid x509 PEM file. If this is successful the certificate bundle (key + any certs) is returned.
calnex/cert/cert.go:83
↓ 13 callers
Method
SetCounter
SetCounter will set a counter to the provided value.
fbclock/stats/stats.go:54
↓ 13 callers
Method
String
()
servo/servo.go:42
↓ 13 callers
Method
SyncInterval
SyncInterval inform a clock servo about the master's sync interval in seconds
servo/pi.go:283
↓ 13 callers
Method
Write
(p []byte)
ntp/chrony/client_test.go:65
↓ 13 callers
Function
buildTestTOR
buildTestTOR creates a synthetic TOR file with 4 reflective peaks shaped like a real GNSS receiver trace: OA and OD are strong (FO Out connector and a
caliper/caliper_test.go:36
↓ 13 callers
Method
dec
(d time.Duration)
ptp/sptp/client/backoff.go:50
↓ 13 callers
Method
keys
keys returns slice of keys of the underlying map
ptp/ptp4u/stats/stats.go:168
↓ 13 callers
Function
prepareExpression
(exprStr string)
ptp/c4u/clock/math.go:121
↓ 13 callers
Function
sfrbx
sfrbx wraps a subframe in a UBX-RXM-SFRBX payload (reverses the >>6 word extraction the decoder performs).
rtcm/ephemeris_test.go:62
↓ 12 callers
Method
AdjFreqPPB
(freq float64)
ptp/sptp/client/clock.go:32
↓ 12 callers
Function
ComputeResult
ComputeResult computes the full measurement result from parsed TOR data and peaks.
caliper/caliper.go:147
↓ 12 callers
Function
NewScanner
NewScanner creates a new Scanner that reads RTCM3 frames from r.
rtcm/scanner.go:49
↓ 12 callers
Function
ParseExtensionFields
ParseExtensionFields parses a buffer of zero or more concatenated extension fields per RFC 7822 §7.5. The buffer must contain only extension fields; a
ntp/protocol/extension_fields.go:204
↓ 12 callers
Method
Running
Running returns the running bool
ptp/ptp4u/server/subscription.go:188
↓ 12 callers
Method
String
String returns a human-readable representation of the IP address. For IPAddrID family (unresolved addresses), it returns "ID#XXXXXXXXXX" format simila
ntp/chrony/helpers.go:79
↓ 12 callers
Method
String
()
oscillatord/monitoring.go:127
↓ 12 callers
Method
Sync
Sync returns ptp Sync packet
ptp/ptp4u/server/subscription.go:230
↓ 12 callers
Method
initClients
()
ptp/sptp/client/sptp.go:92
↓ 12 callers
Function
prepareTestClient
(t *testing.T, packet Packet)
ptp/protocol/management_client_test.go:57
↓ 12 callers
Function
strerror
(errCode C.int)
fbclock/fbclock.go:38
↓ 11 callers
Method
Bytes
Bytes converts Packet to []bytes
ntp/protocol/packet.go:122
↓ 11 callers
Function
CRC24Q
CRC24Q computes the CRC-24Q checksum used in RTCM3 frames.
rtcm/rtcm.go:148
↓ 11 callers
Method
Copy
Copy all key-values between maps
fbclock/stats/stats.go:70
↓ 11 callers
Method
FreqPPB
()
phc/pps_source.go:100
↓ 11 callers
Method
IP
IP converts PortAddress to IP
ptp/protocol/types.go:720
↓ 11 callers
Function
NewTrackingPacket
NewTrackingPacket creates new packet to request 'tracking' information
ntp/chrony/packet.go:1021
↓ 11 callers
Function
ParseFrame
ParseFrame validates and parses a complete RTCM3 frame from raw bytes. The input must contain the full frame including preamble, header, payload, and
rtcm/rtcm.go:82
↓ 11 callers
Method
Start
Start launches the subscription timers and exit on expire
ptp/ptp4u/server/subscription.go:87
↓ 11 callers
Method
Write
(p []byte)
cmd/ptpcheck/checker/ptp4l_test.go:370
↓ 11 callers
Method
allSamples
()
ptp/sptp/client/window.go:66
↓ 11 callers
Function
buildPayloadWithType
buildPayloadWithType creates a payload with the given RTCM3 message type encoded in the first 12 bits, padded to the specified total length.
rtcm/rtcm_test.go:43
↓ 11 callers
Method
calculateSHMData
(data *DataPoint, leaps []leapsectz.LeapSecond)
fbclock/daemon/daemon.go:354
↓ 11 callers
Function
checkOSSFW
(t *testing.T, expectedFilePath string, expectedVersion *version.Version)
calnex/firmware/ossfirmware_test.go:26
↓ 11 callers
Method
lastSample
()
ptp/sptp/client/window.go:62
↓ 11 callers
Method
mean
()
ptp/sptp/client/window.go:95
↓ 11 callers
Method
median
()
ptp/sptp/client/window.go:83
↓ 11 callers
Function
setbitu
setbitu sets n bits (MSB-first) at bit offset pos.
rtcm/ephemeris_test.go:27
↓ 10 callers
Method
Communicate
Communicate sends the management the packet, parses response into something usable
ptp/protocol/management_client.go:52
↓ 10 callers
Function
EnableTimestamps
EnableTimestamps enables timestamps on the socket based on requested type
timestamp/timestamp_linux.go:413
↓ 10 callers
Method
Err
Err returns the first non-EOF error encountered by the Scanner.
rtcm/scanner.go:134
↓ 10 callers
Method
GetState
GetState returns current state of PiServo
servo/pi.go:289
↓ 10 callers
Method
MeanFreq
()
ptp/sptp/client/sptp.go:44
↓ 10 callers
Function
NewJSONStats
NewJSONStats returns a new JSONStats
ptp/c4u/stats/json.go:36
↓ 10 callers
Function
NewSourcesPacket
here go request constructors NewSourcesPacket creates new packet to request number of sources (peers)
ntp/chrony/packet.go:1009
↓ 10 callers
Function
NewUnicastMsgTypeAndFlags
NewUnicastMsgTypeAndFlags builds new UnicastMsgTypeAndFlags from MessageType and flags
ptp/protocol/unicast.go:33
↓ 10 callers
Function
OpenAuthenticator
OpenAuthenticator verifies and decrypts an NTS Authenticator extension field (RFC 8915 §5.6), authenticating ad as associated data, and returns the re
ntp/protocol/nts/authenticator.go:167
↓ 10 callers
Method
Scan
Scan reads the next frame from the stream (either RTCM3 or UBX).
rtcm/mixed_scanner.go:55
↓ 10 callers
Method
Write
(p []byte)
leapsectz/leapsectz_test.go:485
↓ 10 callers
Function
checkAgainstThreshold
generic function to check value against some thresholds
cmd/ptpcheck/cmd/diag.go:89
↓ 10 callers
Method
copyAndClear
copy all key-values between maps
ptp/ptp4u/stats/stats.go:223
↓ 10 callers
Method
init
(rworkers int)
ptp/ptp4u/stats/stats.go:260
↓ 10 callers
Function
isSupportedVar
(varName string)
fbclock/daemon/math.go:155
↓ 10 callers
Function
prepareExpression
(exprStr string)
fbclock/daemon/math.go:203
↓ 10 callers
Method
pushM
(data float64)
fbclock/daemon/state.go:118
↓ 10 callers
Function
secToMS
chrony reports all float measures in seconds, while NTP and this tool operate ms
cmd/ntpcheck/checker/chrony.go:72
↓ 9 callers
Method
AdjFreq
(freq float64)
phc/pps_source.go:85
↓ 9 callers
Method
BestSample
BestSample finds a sample which took the least time to be read; the logic is loosely based on sysoff_estimate from ptp4l sysoff.c
phc/offset.go:92
↓ 9 callers
Method
Frame
Frame returns the most recently scanned frame. It is only valid after Scan returns true.
rtcm/scanner.go:129
↓ 9 callers
Method
GetOperation
GetOperation returns int operation extracted from REMOp 8bit word
ntp/control/packet.go:327
↓ 9 callers
Method
IsSpike
(offset int64)
ptp/sptp/client/sptp.go:45
↓ 9 callers
Function
MakeVnMode
MakeVnMode composes uint8 with version and mode bits set
ntp/control/packet.go:278
↓ 9 callers
Function
NewSourceDataPacket
NewSourceDataPacket creates new packet to request 'source data' information about source with given ID
ntp/chrony/packet.go:1046
↓ 9 callers
Function
NewTimeInterval
NewTimeInterval returns TimeInterval built from Nanoseconds
ptp/protocol/types.go:149
↓ 9 callers
Function
ReadDynamicConfig
ReadDynamicConfig reads dynamic config from the file
ptp/ptp4u/server/config.go:98
↓ 9 callers
Method
RegisterSubscription
RegisterSubscription will overwrite an existing subscription. Make sure you call findSubscription before this
ptp/ptp4u/server/worker.go:388
↓ 9 callers
Method
Reset
Reset atomically sets all the counters to 0
fbclock/stats/stats.go:29
↓ 9 callers
Method
Set
Set Channel to Channels
calnex/api/api.go:374
↓ 9 callers
Method
Verify
Verify verifies the supplied bundle checking that: - We have a private key - We have a cert - One of the cert CNs matches the supplied hostname - The
calnex/cert/cert.go:175
↓ 9 callers
Method
Write
(p []byte)
ntp/chrony/packet_test.go:1341
↓ 9 callers
Method
WriteTo
(b []byte, addr unix.Sockaddr)
ptp/sptp/client/connection.go:35
↓ 9 callers
Method
addAnnounce
(announce ptp.Announce)
ptp/sptp/client/measurements.go:88
↓ 9 callers
Method
addCF2
(seq uint16, correction time.Duration)
ptp/sptp/client/measurements.go:120
↓ 9 callers
Method
addT1
(seq uint16, ts time.Time)
ptp/sptp/client/measurements.go:110
↓ 9 callers
Method
addT2andCF1
(seq uint16, ts time.Time, correction time.Duration)
ptp/sptp/client/measurements.go:98
↓ 9 callers
Method
addT3
(seq uint16, ts time.Time)
ptp/sptp/client/measurements.go:131
↓ 9 callers
Method
addT4
addDelayResp stores ts and seq of DELAY_RESP packet and updates history with latest measurements
ptp/sptp/client/measurements.go:143
↓ 9 callers
Function
casterWrite
casterWrite wraps an error returned while writing to the caster.
cmd/ntripper/main.go:278
↓ 9 callers
Function
evaluateClockQuality
(config *Config, q *ptp.ClockQuality)
ptp/c4u/c4u.go:69
↓ 9 callers
Method
inc
inc increments the counter for the given key
ptp/ptp4u/stats/stats.go:195
↓ 9 callers
Method
incRunningHandlers
()
cmd/ziffy/node/receiver_linux.go:89
↓ 9 callers
Function
mean
(input []float64)
fbclock/daemon/math.go:92
↓ 9 callers
Function
parseVx
(r io.Reader)
leapsectz/leapsectz.go:107
↓ 8 callers
Method
Complete
()
ptp/sptp/client/measurements.go:55
↓ 8 callers
Method
Data
Data from the ring buffer
ptp/c4u/clock/clock.go:67
↓ 8 callers
Method
DelayResp
DelayResp returns ptp Delay Response packet
ptp/ptp4u/server/subscription.go:363
↓ 8 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
phc/pps_mock_test.go:328
↓ 8 callers
Function
EnableSWTimestampsRx
EnableSWTimestampsRx enables SW RX timestamps on the socket
timestamp/timestamp_linux.go:147
↓ 8 callers
Method
Encode
Encode returns the wire-format bytes of this extension field, padded per RFC 7822.
ntp/protocol/extension_fields.go:130
← previous
next →
101–200 of 3,016, ranked by callers