summaryrefslogtreecommitdiff
path: root/vendor/github.com/containerd/cgroups/ticks.go
blob: f471c5ae72347ac96211a8206b7e3f64c25d4096 (plain)
1
2
3
4
5
6
7
8
9
10
package cgroups

func getClockTicks() uint64 {
	// The value comes from `C.sysconf(C._SC_CLK_TCK)`, and
	// on Linux it's a constant which is safe to be hard coded,
	// so we can avoid using cgo here.
	// See https://github.com/containerd/cgroups/pull/12 for
	// more details.
	return 100
}