ded58db1eb
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
13 lines
178 B
Go
13 lines
178 B
Go
// +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())
|
|
}
|