diff options
Diffstat (limited to 'runtime/js/11_timers.js')
-rw-r--r-- | runtime/js/11_timers.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/js/11_timers.js b/runtime/js/11_timers.js index 7a0307c06..200c764b7 100644 --- a/runtime/js/11_timers.js +++ b/runtime/js/11_timers.js @@ -17,10 +17,8 @@ await core.jsonOpAsync("op_global_timer"); } - const nowBytes = new Uint8Array(8); function opNow() { - core.binOpSync("op_now", 0, nowBytes); - return new DataView(nowBytes.buffer).getFloat64(); + return core.jsonOpSync("op_now"); } function sleepSync(millis = 0) { |