Sign in
fuchsia
/
third_party
/
github.com
/
moby
/
moby
/
refs/tags/v0.12.0
/
.
/
pkg
/
system
/
sysconfig.go
blob: dcbe6c9cdde60e52e3da87bda797f5c00e7c7ffa [
file
] [
log
] [
blame
]
// +build linux,cgo
package system
/*
#include <unistd.h>
int get_hz(void) { return sysconf(_SC_CLK_TCK); }
*/
import "C"
func GetClockTicks() int {
return int(C.get_hz())
}