Documentation ¶
Overview ¶
Package youtime provides bounded time uncertainty.
YouTime is roughly inspired by Geng, et al., "Exploitng a Natural Network Effect for Scalable Fine-grained Clock Synchronization," Proc. 15th USENIX Sym. on NSDI, 2018.
https://www.usenix.org/system/files/conference/nsdi18/nsdi18-geng.pdf
Index ¶
Constants ¶
View Source
const CodedProbeInterval = 1 * time.Second
CodedProbeInterval is the time between coded probes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an instance of YouTime.
func (*Client) Uncertainty ¶
Uncertainty returns the current estimated uncertainty for the YouTimes produced by Get.
type YouTime ¶
type YouTime struct {
// contains filtered or unexported fields
}
YouTime represents a range of time within which the current time lies.
func (YouTime) EstimatedCommitWait ¶
EstimatedCommitWait returns the maximum amount of time Time would wait before providing a timestamp.
Click to show internal directories.
Click to hide internal directories.