timer

package
v3.1.76 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Run

type Run struct {
	Start  time.Time
	Finish time.Time
}

type Runs

type Runs []Run

type Timer

type Timer struct {
	Runs
	*sync.RWMutex
}

func New

func New() *Timer

func (*Timer) Elapsed

func (t *Timer) Elapsed() time.Duration

func (*Timer) FinishTime

func (t *Timer) FinishTime() time.Time

func (*Timer) Finished

func (t *Timer) Finished() bool

func (*Timer) LastStart

func (t *Timer) LastStart() time.Time

func (*Timer) Running

func (t *Timer) Running() bool

func (*Timer) Start

func (t *Timer) Start() time.Time

func (*Timer) StartTime

func (t *Timer) StartTime() time.Time

func (*Timer) Started

func (t *Timer) Started() bool

func (*Timer) Stop

func (t *Timer) Stop() time.Time

Jump to

Keyboard shortcuts

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