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:
Ian Lance Taylor 2021-04-28 11:42:34 -07:00
parent 4e3e6b58f7
commit 862ddb37b4
31 changed files with 51 additions and 54 deletions

View file

@ -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)