mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: rename walltime1 to walltime
Change-Id: Iec9de5ca56eb68d524bbaa0668515dbd09ad38a1 Reviewed-on: https://go-review.googlesource.com/c/go/+/314770 Trust: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
parent
4e3e6b58f7
commit
862ddb37b4
31 changed files with 51 additions and 54 deletions
|
|
@ -531,7 +531,7 @@ func usleep(µs uint32) {
|
|||
usleep1(µs)
|
||||
}
|
||||
|
||||
func walltime1() (sec int64, nsec int32) {
|
||||
func walltime() (sec int64, nsec int32) {
|
||||
var ts mts
|
||||
sysvicall2(&libc_clock_gettime, _CLOCK_REALTIME, uintptr(unsafe.Pointer(&ts)))
|
||||
return ts.tv_sec, int32(ts.tv_nsec)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue