github.com/jackc/puddle/v2@v2.2.2-0.20240301145809-72b022bcfc59/nanotime_unsafe.go (about) 1 //go:build !purego && !appengine && !js 2 3 // This file contains the implementation of nanotime using runtime.nanotime. 4 5 package puddle 6 7 import "unsafe" 8 9 var _ = unsafe.Sizeof(0) 10 11 //go:linkname nanotime runtime.nanotime 12 func nanotime() int64