timing

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimerStruct

type TimerStruct struct {
	StartTime int64
	EndTime   int64
	Task      string
	LogFile   string
}

func NewTimer

func NewTimer() *TimerStruct

func (*TimerStruct) EndTiming

func (timer *TimerStruct) EndTiming() *TimerStruct

func (*TimerStruct) GenerateTimingContent

func (timer *TimerStruct) GenerateTimingContent() string

func (*TimerStruct) GetEllapsedms

func (timer *TimerStruct) GetEllapsedms() int64

func (*TimerStruct) GetEllapsedseconds

func (timer *TimerStruct) GetEllapsedseconds() int64

func (*TimerStruct) RecordTime

func (timer *TimerStruct) RecordTime() error

func (*TimerStruct) Reset

func (timer *TimerStruct) Reset() *TimerStruct

func (*TimerStruct) StartTiming

func (timer *TimerStruct) StartTiming() *TimerStruct

func (*TimerStruct) WithLogFile

func (timer *TimerStruct) WithLogFile(logFile string) *TimerStruct

func (*TimerStruct) WithTask

func (timer *TimerStruct) WithTask(t string) *TimerStruct

Jump to

Keyboard shortcuts

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