diff options
author | Russ Cox <rsc@golang.org> | 2017-02-02 16:20:58 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2017-02-03 19:04:52 +0000 |
commit | 0e3355903d2ebcf5ee9e76096f51ac9a116a9dbb (patch) | |
tree | 50cba3a8521e07846222393f5045bfec0cba5ffc /src/runtime/sys_darwin_amd64.s | |
parent | 8179b9b462eb2946de8488a26dca91a89b3d22e6 (diff) | |
download | go-0e3355903d2ebcf5ee9e76096f51ac9a116a9dbb.tar.gz go-0e3355903d2ebcf5ee9e76096f51ac9a116a9dbb.zip |
time: record monotonic clock reading in time.Now, for more accurate comparisons
See https://golang.org/design/12914-monotonic for details.
Fixes #12914.
Change-Id: I80edc2e6c012b4ace7161c84cf067d444381a009
Reviewed-on: https://go-review.googlesource.com/36255
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Caleb Spare <cespare@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/sys_darwin_amd64.s')
-rw-r--r-- | src/runtime/sys_darwin_amd64.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/sys_darwin_amd64.s b/src/runtime/sys_darwin_amd64.s index f94482856c..de8e9e37c9 100644 --- a/src/runtime/sys_darwin_amd64.s +++ b/src/runtime/sys_darwin_amd64.s @@ -198,8 +198,8 @@ TEXT runtime·nanotime(SB),NOSPLIT,$0-8 MOVQ AX, ret+0(FP) RET -// func now() (sec int64, nsec int32) -TEXT time·now(SB),NOSPLIT,$0-12 +// func walltime() (sec int64, nsec int32) +TEXT runtime·walltime(SB),NOSPLIT,$0-12 CALL nanotime<>(SB) // generated code for |