clock

package
Version: v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: BSD-2-Clause-Views Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlignedTick

func AlignedTick(period, offset time.Duration, bufSize int) <-chan time.Time

AlignedTick returns a tick channel that ticks slightly after* offset after the whole interval. Examples interval offset ticks 1s 0 every whole second 10s 1s 00:00:01, 00:00:11, etc 90m 15m 00:00:15, 00:01:45, etc [*] in my testing about .0001 to 0.0002 seconds later due to scheduling etc.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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