k3s/vendor/github.com/opencontainers/runc/libcontainer/system/sysconfig.go

13 lines
142 B
Go

// +build cgo,linux
package system
/*
#include <unistd.h>
*/
import "C"
func GetClockTicks() int {
return int(C.sysconf(C._SC_CLK_TCK))
}