pkgtime

package
v0.0.0-...-15a92f0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2016 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeTimer

type FakeTimer interface {
	Timer
	Add(deltaSeconds int64, deltaNanos int64)
	Set(unixSeconds int64, unixNanos int64)
}

FakeTimer is a Timer that can have it's time modified.

func NewFakeTimer

func NewFakeTimer() FakeTimer

NewFakeTimer constructs a new FakeTimer.

type Timer

type Timer interface {
	Now() time.Time
}

Timer represents a timer.

func NewSystemTimer

func NewSystemTimer() Timer

NewSystemTimer constructs a Timer using the system time.

Jump to

Keyboard shortcuts

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