util

package
v0.0.0-...-e613796 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintTimeDiff

func PrintTimeDiff(start int64, end int64) string

func PrintTimeDiffNow

func PrintTimeDiffNow(start int64) string

func PrintTimeDifference

func PrintTimeDifference(diff int64) string

Types

type ArrType

type ArrType = int64

func Median

func Median(sliceList []ArrType) ArrType

type ThreadPool

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

func NewThreadPool

func NewThreadPool(threads uint) ThreadPool

func (*ThreadPool) Add

func (pool *ThreadPool) Add(job func())

func (*ThreadPool) StartAndWait

func (pool *ThreadPool) StartAndWait()

Jump to

Keyboard shortcuts

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