...

Source file src/runtime/time_nofake.go

Documentation: runtime

		 1  // Copyright 2019 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  //go:build !faketime
		 6  // +build !faketime
		 7  
		 8  package runtime
		 9  
		10  import "unsafe"
		11  
		12  // faketime is the simulated time in nanoseconds since 1970 for the
		13  // playground.
		14  //
		15  // Zero means not to use faketime.
		16  var faketime int64
		17  
		18  //go:nosplit
		19  func nanotime() int64 {
		20  	return nanotime1()
		21  }
		22  
		23  // write must be nosplit on Windows (see write1)
		24  //
		25  //go:nosplit
		26  func write(fd uintptr, p unsafe.Pointer, n int32) int32 {
		27  	return write1(fd, p, n)
		28  }
		29  

View as plain text