cpu

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MilliCore = 1
	Core      = MilliCore * 1000
)

Variables

This section is empty.

Functions

func Ceil

func Ceil(cpu float32) uint8

func Parse

func Parse(cpuSecond string) (uint32, error)

func ParseCore

func ParseCore(cpuSecond string) (uint32, error)

func ParseMilli

func ParseMilli(cpuSecond string) (uint32, error)

func ToCpu

func ToCpu(seconds uint32) float32

func ToSeconds

func ToSeconds(cpu float32) uint32

Types

This section is empty.

Jump to

Keyboard shortcuts

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