cpu

package
v3.6.7+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package cpu implements functions relating to the host CPU itself.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MaxSpeed

func MaxSpeed() int64

MaxSpeed returns the processor maximum speed in Hz.

Returns 0 if it couldn't be calculated.

func Nanospin

func Nanospin(d time.Duration)

Nanospin spins for a short amount of time doing a busy loop.

This function should be called with durations of 10µs or less.

Types

This section is empty.

Jump to

Keyboard shortcuts

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