github.com/elastic/gosigar@v0.14.3/sys/linux/sysconf_cgo.go (about)

     1  // +build linux,cgo
     2  
     3  package linux
     4  
     5  /*
     6  #include <unistd.h>
     7  */
     8  import "C"
     9  
    10  // GetClockTicks returns the number of click ticks in one jiffie.
    11  func GetClockTicks() int {
    12  	return int(C.sysconf(C._SC_CLK_TCK))
    13  }