github.com/aloncn/graphics-go@v0.0.1/src/runtime/os_linux_mips64x.go (about) 1 // Copyright 2015 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // +build mips64 mips64le 6 // +build linux 7 8 package runtime 9 10 var randomNumber uint32 11 12 //go:nosplit 13 func cputicks() int64 { 14 // Currently cputicks() is used in blocking profiler and to seed fastrand1(). 15 // nanotime() is a poor approximation of CPU ticks that is enough for the profiler. 16 // randomNumber provides better seeding of fastrand1. 17 return nanotime() + int64(randomNumber) 18 }