randtime

package
v0.0.0-...-d1ab4a3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package randtime provides a ticker with random ticks with an API identical to time.Ticker.

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
	// contains filtered or unexported fields
}

func NewTicker

func NewTicker(dur time.Duration, delta time.Duration) (ticker *Ticker)

NewTicker creates a ticker that ticks every d uniformly selected from [dur, dur+delta].

func (*Ticker) Stop

func (t *Ticker) Stop()

Stop stops the ticker.

Jump to

Keyboard shortcuts

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