common

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateObjectID

func GenerateObjectID(flowID string, suffix string) string

GenerateObjectID 随机文件ID

func GenerateRandomString

func GenerateRandomString(length int) string

GenerateRandomString 生成随机字符串

Types

type TimeTick

type TimeTick struct {
	TimeList  []int64 // 打点时间点
	BuildTime int64   // 开始时间
}

TimeTick 计时器,单位 ms

func BuildTimeTick

func BuildTimeTick() TimeTick

BuildTimeTick 构建一个计时器

func (*TimeTick) GetTotalTime

func (tick *TimeTick) GetTotalTime() int64

TimeTick.GetTotalTime 获取计计时器总时间

func (*TimeTick) Tick

func (tick *TimeTick) Tick() int64

TimeTick.Tick 计时器打点

Jump to

Keyboard shortcuts

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