Skip to content

Instantly share code, notes, and snippets.

@freeformz
Last active December 10, 2015 22:49
Show Gist options
  • Save freeformz/4505073 to your computer and use it in GitHub Desktop.
Save freeformz/4505073 to your computer and use it in GitHub Desktop.
package main;
// build +cgo
import "fmt"
/*
#include <unistd.h>
*/
import "C"
func main() {
fmt.Println(C.sysconf(C._SC_CLK_TCK))
}
> go build main.go
> ./main
100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment