2015-06-15 18:18:38 -04:00
|
|
|
// +build cgo,linux cgo,freebsd
|
2014-07-16 15:15:29 -07:00
|
|
|
|
|
|
|
package system
|
|
|
|
|
|
|
|
/*
|
|
|
|
#include <unistd.h>
|
|
|
|
*/
|
|
|
|
import "C"
|
|
|
|
|
|
|
|
func GetClockTicks() int {
|
2014-07-18 14:55:04 -07:00
|
|
|
return int(C.sysconf(C._SC_CLK_TCK))
|
2014-07-16 15:15:29 -07:00
|
|
|
}
|