]> Cypherpunks repositories - gostls13.git/commit
runtime: use a single definition of time_now for faketime
authorIan Lance Taylor <iant@golang.org>
Tue, 27 Apr 2021 23:22:25 +0000 (16:22 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 28 Apr 2021 20:17:20 +0000 (20:17 +0000)
commitc96fec9036e8b446b7ffefb59d2775b385ec6701
treef8a13c168294a2525f160ec292b6d04e0efc9ba7
parentb36596b14f8d3bee586479323c56b5db416a49e5
runtime: use a single definition of time_now for faketime

Build other definitions with the !faketime build tag.

This makes it easy for us to add new assembly implementations of time.now.

Change-Id: I4e48e41a4a04ab001030e6d1cdd9cebfa0161b0d
Reviewed-on: https://go-review.googlesource.com/c/go/+/314274
Trust: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/time_fake.go
src/runtime/time_windows_386.s
src/runtime/time_windows_amd64.s
src/runtime/time_windows_arm.s
src/runtime/time_windows_arm64.s
src/runtime/timeasm.go
src/runtime/timestub.go