qtypes_ticker

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ticker

type Ticker struct {
	Name              string
	Duration          time.Duration
	DurationMs        int
	DurationTolerance float64
	ForceTick         bool
	Tick              time.Time
	LastTick          time.Time
}

func NewForceTicker

func NewForceTicker(name string, durMs int) Ticker

func NewTicker

func NewTicker(name string, durMs int) Ticker

func (Ticker) DispatchTicker

func (t Ticker) DispatchTicker(qchan qtypes_qchannel.QChan)

func (*Ticker) SkipTick

func (t *Ticker) SkipTick(lastTick time.Time) (time.Duration, bool)

Jump to

Keyboard shortcuts

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