timer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StackTimer

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

StackTimer allows to get the timing breakdown of a nested process.

func NewStackTimer

func NewStackTimer(name string) *StackTimer

NewStackTimer returns a new stack timer.

func (*StackTimer) End

func (t *StackTimer) End()

End pops an entry from the stack.

func (*StackTimer) Start

func (t *StackTimer) Start(name string)

Start pushes an entry on the stack.

func (*StackTimer) Trace

func (t *StackTimer) Trace() string

Trace returns the current stack trace.

Jump to

Keyboard shortcuts

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