...

Source file src/github.com/tetratelabs/wazero/internal/platform/time_cgo.go

Documentation: github.com/tetratelabs/wazero/internal/platform

     1  //go:build cgo && !windows
     2  
     3  package platform
     4  
     5  import _ "unsafe" // for go:linkname
     6  
     7  // nanotime uses runtime.nanotime as it is available on all platforms and
     8  // benchmarks faster than using time.Since.
     9  //
    10  //go:linkname nanotime runtime.nanotime
    11  func nanotime() int64
    12  

View as plain text