This adds the 1.19.0-rc2. in the testing matrix. This also formats the Godocs across the codebase, as Go 1.19 has started auto-formatting Godoc. https://github.com/tetratelabs/wazero/issues/426 Signed-off-by: Takeshi Yoneda <takeshi@tetrate.io>
13 lines
269 B
Go
13 lines
269 B
Go
//go:build cgo
|
|
|
|
package platform
|
|
|
|
import _ "unsafe" // for go:linkname
|
|
|
|
// nanotime uses runtime.nanotime as it is available on all platforms and
|
|
// benchmarks faster than using time.Since.
|
|
//
|
|
//go:noescape
|
|
//go:linkname nanotime runtime.nanotime
|
|
func nanotime() int64
|