sys/linux/sysconf_cgo.go (5 lines of code) (raw):

//go:build linux && cgo // +build linux,cgo package linux /* #include <unistd.h> */ import "C" // GetClockTicks returns the number of click ticks in one jiffie. func GetClockTicks() int { return int(C.sysconf(C._SC_CLK_TCK)) }