You can do it with cgo. I have some code that does this:
// #include <unistd.h>
import "C"
func init() {
clockTicksPerSec = float64(C.sysconf(C._SC_CLK_TCK))
if clockTicksPerSec != 100 {
log.Println("Unusual _SC_CLK_TCK value:", clockTicksPerSec)
}
}
var clockTicksPerSec float64
// later it normalizes things by clickTicksPerSec
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.