calc

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSize added in v0.1.2

func DataSize(size uint64) string

DataSize format value. Deprecated

please use fmtutil.DataSize() instead

func ElapsedTime added in v0.1.2

func ElapsedTime(startTime time.Time) string

ElapsedTime calc elapsed time 计算运行时间消耗 单位 ms(毫秒) Deprecated

please use mathutil.ElapsedTime() instead

func HowLongAgo added in v0.1.2

func HowLongAgo(sec int64) string

HowLongAgo calc time. Deprecated

please use fmtutil.HowLongAgo() instead

func Percent

func Percent(val, total int) float64

Percent returns a values percent of the total Deprecated

please use mathutil.Percent() instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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