xbwatch

package
v0.0.0-...-bd81919 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

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

func NewCounter

func NewCounter(initial, interval int) *Counter

func NewDefaultCounter

func NewDefaultCounter() *Counter

func (*Counter) Count

func (counter *Counter) Count() int

func (*Counter) Down

func (counter *Counter) Down() *Counter

func (*Counter) HasCountedBelow

func (counter *Counter) HasCountedBelow(value int) bool

func (*Counter) HasCountedDownTo

func (counter *Counter) HasCountedDownTo(value int) bool

func (*Counter) HasCountedOver

func (counter *Counter) HasCountedOver(value int) bool

func (*Counter) HasCountedUpTo

func (counter *Counter) HasCountedUpTo(value int) bool

func (*Counter) Minus

func (counter *Counter) Minus(value int) *Counter

func (*Counter) Plus

func (counter *Counter) Plus(value int) *Counter

func (*Counter) Reset

func (counter *Counter) Reset() *Counter

func (*Counter) Up

func (counter *Counter) Up() *Counter

type Watch

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

func NewWatch

func NewWatch() *Watch

func (*Watch) ElapsedTime

func (watch *Watch) ElapsedTime() time.Duration

func (*Watch) ElapsedTimeMs

func (watch *Watch) ElapsedTimeMs() int64

func (*Watch) ElapsedTimeNs

func (watch *Watch) ElapsedTimeNs() int64

func (*Watch) ElapsedTimeS

func (watch *Watch) ElapsedTimeS() int64

func (*Watch) HasElapsedTime

func (watch *Watch) HasElapsedTime(value time.Duration) bool

func (*Watch) InitialTime

func (watch *Watch) InitialTime() time.Time

func (*Watch) Reset

func (watch *Watch) Reset() *Watch

func (*Watch) Stamp

func (watch *Watch) Stamp() *Watch

func (*Watch) StampedTime

func (watch *Watch) StampedTime() time.Time

Jump to

Keyboard shortcuts

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