ticker

package
v0.0.0-...-6c4e3c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2019 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlignedTicker

func GetAlignedTicker(c clock.Clock, period time.Duration) *clock.Ticker

GetAlignedTicker returns a ticker so that, let's say interval is a second then it will tick at every whole second, or if it's 60s than it's every whole minute. Note that in my testing this is about .0001 to 0.0002 seconds off due to scheduling etc.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL