Discover Packages
github.com/aofei/wirehop
internal
clockmap
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 16, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package clockmap maps monotonic timestamps between WireHop peers.
type Mapping struct {
OffsetMicros int64
UncertaintyMicros uint64
}
Mapping translates local monotonic timestamps into remote monotonic timestamps.
Estimate derives a remote-minus-local mapping and uncertainty from sample.
DeadlineBounds returns the earliest and latest remote times supported for a local deadline.
Inverse returns the mapping from the former remote clock back to the local clock.
Translate maps a local monotonic timestamp into the remote clock domain.
type Sample struct {
LocalSendMicros uint64
RemoteReceiveMicros uint64
RemoteSendMicros uint64
LocalReceiveMicros uint64
}
Sample is a four-timestamp exchange from one local clock to one remote clock.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.