diff options
author | Ian Lance Taylor <iant@golang.org> | 2021-04-28 11:10:07 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2021-04-29 04:19:20 +0000 |
commit | 42953bc9f5ded1bcf4ff727d82ddd3b7a8a2b8de (patch) | |
tree | b79982499d0ec93a322a1f425841d5568134a35d /src/runtime/timestub.go | |
parent | d09947522d1fbe17d6a8aece07d70e31a3a5311e (diff) | |
download | go-42953bc9f5ded1bcf4ff727d82ddd3b7a8a2b8de.tar.gz go-42953bc9f5ded1bcf4ff727d82ddd3b7a8a2b8de.zip |
runtime: remove walltime function
There was only one meaningful caller, which changes to call time_now.
This clearly separates systems that use walltime1 to be just those
that use the stub version of time_now. That is to say, those that do
not provide an assembler version of time_now.
Change-Id: I14c06cc402070bd705f953af6f9966785015e2a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/314769
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/runtime/timestub.go')
-rw-r--r-- | src/runtime/timestub.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/timestub.go b/src/runtime/timestub.go index 6f16c70b81..44e65845cb 100644 --- a/src/runtime/timestub.go +++ b/src/runtime/timestub.go @@ -16,6 +16,6 @@ import _ "unsafe" // for go:linkname //go:linkname time_now time.now func time_now() (sec int64, nsec int32, mono int64) { - sec, nsec = walltime() + sec, nsec = walltime1() return sec, nsec, nanotime() } |