...

Source file src/runtime/timestub.go

Documentation: runtime

		 1  // Copyright 2017 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  // Declarations for operating systems implementing time.now
		 6  // indirectly, in terms of walltime and nanotime assembly.
		 7  
		 8  //go:build !faketime && !windows && !(linux && amd64)
		 9  // +build !faketime
		10  // +build !windows
		11  // +build !linux !amd64
		12  
		13  package runtime
		14  
		15  import _ "unsafe" // for go:linkname
		16  
		17  //go:linkname time_now time.now
		18  func time_now() (sec int64, nsec int32, mono int64) {
		19  	sec, nsec = walltime()
		20  	return sec, nsec, nanotime()
		21  }
		22  

View as plain text