runc/system/sysconfig.go

13 lines
142 B
Go

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