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_plan9_386.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_plan9_386.s')
-rw-r--r-- | src/runtime/sys_plan9_386.s | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/sys_plan9_386.s b/src/runtime/sys_plan9_386.s index 41aa2fd982..6baa8138d6 100644 --- a/src/runtime/sys_plan9_386.s +++ b/src/runtime/sys_plan9_386.s @@ -102,8 +102,8 @@ TEXT runtime·nsec(SB),NOSPLIT,$8 MOVL $-1, ret_hi+8(FP) RET -// func now() (sec int64, nsec int32) -TEXT time·now(SB),NOSPLIT,$8-12 +// func walltime() (sec int64, nsec int32) +TEXT runtime·walltime(SB),NOSPLIT,$8-12 CALL runtime·nanotime(SB) MOVL 0(SP), AX MOVL 4(SP), DX |