timekeeper

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package timekeeper implements simulated time against the v.io/x/ref/lib/timekeeper.TimeKeeper interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManualTime

type ManualTime interface {
	timekeeper.TimeKeeper
	// AdvanceTime advances the current time by d.
	AdvanceTime(d time.Duration)
	// Requests provides a channel where the requested delays for After and
	// Sleep can be observed.
	Requests() <-chan time.Duration
}

ManualTime is a time keeper that allows control over the advancement of time.

func NewManualTime

func NewManualTime() ManualTime

NewManualTime constructs a new instance of ManualTime, with current time set at 0.

Jump to

Keyboard shortcuts

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