package time

import "go.opentelemetry.io/otel/sdk/metric/controller/time"

Index

Types

type Clock

type Clock interface {
	Now() lib.Time
	Ticker(lib.Duration) Ticker
}

type RealClock

type RealClock struct {
}

func (RealClock) Now

func (RealClock) Now() time.Time

func (RealClock) Ticker

func (RealClock) Ticker(period time.Duration) Ticker

type RealTicker

type RealTicker struct {
	// contains filtered or unexported fields
}

func (RealTicker) C

func (t RealTicker) C() <-chan time.Time

func (RealTicker) Stop

func (t RealTicker) Stop()

type Ticker

type Ticker interface {
	Stop()
	C() <-chan lib.Time
}

Source Files

time.go

Version
v0.6.0
Published
May 21, 2020
Platform
linux/amd64
Imports
1 packages
Last checked
8 minutes ago

Tools for package owners.