stime

package
v0.0.0-...-73b4bbd Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

type Clock Time

func (Clock) Future

func (c Clock) Future(mag int64) Time

func (Clock) NextTick

func (c Clock) NextTick() Time

func (Clock) Now

func (c Clock) Now() Time

func (Clock) Tick

func (c Clock) Tick() Clock

type Span

type Span struct {
	Start, End Time
	Duration   int64
}

func NewSpan

func NewSpan(start, end Time) Span

func (Span) Contains

func (a Span) Contains(t Time) bool

func (Span) Overlaps

func (a Span) Overlaps(other Span) bool

func (Span) Remaining

func (a Span) Remaining(from Time) int64

type Time

type Time int64

Represents an Instant in Time Spans of Time are represented by int64

Jump to

Keyboard shortcuts

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