robocar-led/vendor/github.com/opencontainers/runc/libcontainer/system/sysconfig.go

13 lines
154 B
Go
Raw Normal View History

2019-12-14 10:56:22 +00:00
// +build cgo,linux cgo,freebsd
package system
/*
#include <unistd.h>
*/
import "C"
func GetClockTicks() int {
return int(C.sysconf(C._SC_CLK_TCK))
}