commit | 5d99bb4e5256de227be6fc3831984d5bf5ab3785 | [log] [tgz] |
---|---|---|
author | Seth Hoenig <shoenig@duck.com> | Thu Mar 23 00:26:58 2023 -0500 |
committer | Seth Hoenig <shoenig@duck.com> | Thu Mar 23 00:26:58 2023 -0500 |
tree | 543107eb41995a60b8554db5a3671771d0dd5e03 |
m1cpu: initial commit of a package for inspecting apple silicon CPUs
The m1cpu
package is a library for inspecting Apple Silicon CPUs in Go.
Use the m1cpu
library for looking up the CPU frequency for Apple M1 and M2 CPUs.
go get github.com/shoenig/m1cpu@latest
package main
import (
"fmt"
"github.com/shoenig/go-m1cpu"
)
func main() {
fmt.Println("pCore", m1cpu.PCoreGHz())
fmt.Println("eCore", m1cpu.ECoreGHz())
}
Open source under the MPL