Documentation ¶
Overview ¶
Package jitter provides a stochastic ticker that returns ticks at a random interval specified by a normal distribution with a mean periodicity and a standard deviation, sigma both of which are time.Durations.
This is a simplified version of https://github.com/lthibault/jitterbug.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ticker ¶
type Ticker struct { C <-chan time.Time Interval time.Duration Sigma time.Duration // contains filtered or unexported fields }
Ticker behaves like time.Ticker (listen on Ticker.C for timestamps).
Click to show internal directories.
Click to hide internal directories.