costtime

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cost added in v0.2.0

func Cost(run func())

Cost 里面计算消耗时间

func CostLog added in v0.2.0

func CostLog(name string, run func())

CostLog 计算消耗的时间

func SetLogCondition added in v0.2.0

func SetLogCondition(cond func(cost time.Duration) bool)

SetLogCondition 设置输出cost条件

Types

This section is empty.

Jump to

Keyboard shortcuts

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