calc

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 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. alias format.DataSize()

func ElapsedTime added in v0.1.2

func ElapsedTime(startTime time.Time) string

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

func HowLongAgo added in v0.1.2

func HowLongAgo(sec int64) string

HowLongAgo calc time. alias format.HowLongAgo()

func Percent

func Percent(val, total int) float64

Percent returns a values percent of the total

Types

This section is empty.

Jump to

Keyboard shortcuts

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