aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2021-04-28 11:42:34 -0700
committerIan Lance Taylor <iant@golang.org>2021-04-29 14:15:04 +0000
commit862ddb37b4e24bcb89f060d50325c8f863ee99bc (patch)
tree0387afacc90529a59ec8b3e3877cec5d57047913 /misc
parent4e3e6b58f7ba16caa58f4c826a63d85e26849036 (diff)
downloadgo-862ddb37b4e24bcb89f060d50325c8f863ee99bc.tar.gz
go-862ddb37b4e24bcb89f060d50325c8f863ee99bc.zip
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>
Diffstat (limited to 'misc')
-rw-r--r--misc/wasm/wasm_exec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/wasm/wasm_exec.js b/misc/wasm/wasm_exec.js
index 82041e6bb9..3e41e628ef 100644
--- a/misc/wasm/wasm_exec.js
+++ b/misc/wasm/wasm_exec.js
@@ -296,8 +296,8 @@
setInt64(sp + 8, (timeOrigin + performance.now()) * 1000000);
},
- // func walltime1() (sec int64, nsec int32)
- "runtime.walltime1": (sp) => {
+ // func walltime() (sec int64, nsec int32)
+ "runtime.walltime": (sp) => {
sp >>>= 0;
const msec = (new Date).getTime();
setInt64(sp + 8, msec / 1000);