Source File
runtime.go
Belonging Package
runtime
package runtime
import (
_ // for go:linkname
)
func () int64 {
:= int64(atomic.Load64(&ticks.val))
if != 0 {
return
}
lock(&ticks.lock)
= int64(ticks.val)
if == 0 {
:= nanotime()
:= cputicks()
usleep(100 * 1000)
:= nanotime()
:= cputicks()
if == {
++
}
= ( - ) * 1000 * 1000 * 1000 / ( - )
if == 0 {
++
}
atomic.Store64(&ticks.val, uint64())
}
unlock(&ticks.lock)
return
}
var envs []string
var argslice []string
func () int { return int(physPageSize) }
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |