timer

package
v0.0.0-...-56f3d1a Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarkPoint

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

MarkPoint define data structure of marked point

type XTimer

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

XTimer define the timestamps and marked points

func NewXTimer

func NewXTimer() *XTimer

NewXTimer create new XTimer instance

func (*XTimer) Mark

func (timer *XTimer) Mark(tag string)

Mark mark a point and record the tag of the point with time delta

func (*XTimer) Print

func (timer *XTimer) Print() string

Print all record points and timestamp information

Jump to

Keyboard shortcuts

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