timer

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DEBUG bool = os.Getenv("DEBUG") != ""
)

Functions

This section is empty.

Types

type Timer

type Timer struct {
	Name string

	StageTimes       map[string]time.Time
	StageDurations   map[string]time.Duration
	StagePercentages map[string]string
	Total            int64
	AlignKeys        bool
	Enabled          bool
	// contains filtered or unexported fields
}

func NewTimer

func NewTimer(name string, boolArgs ...bool) *Timer

func (*Timer) Mark

func (t *Timer) Mark(stage string)

func (*Timer) PrintJson

func (t *Timer) PrintJson()

func (*Timer) Stop

func (t *Timer) Stop()

Jump to

Keyboard shortcuts

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