cpu

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CpuUsage

func CpuUsage() float64

CpuUsage returns the usage percentage of the CPU

Types

type CPU

type CPU struct {
	Vendor     string    `json:"vendor"`
	Model      string    `json:"model"`
	Cores      uint32    `json:"cores"`
	Threads    uint32    `json:"threads"`
	ClockSpeed float64   `json:"clockSpeed"`
	Usage      float64   `json:"usage"`
	UsageEach  []float64 `json:"usageEach"`
}

CPU properties

func Info added in v0.4.0

func Info() CPU

Info returns CPU struct containing cpu information

Jump to

Keyboard shortcuts

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