mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
fix js_wasm time.tick_now, performance.now() returns a float
This commit is contained in:
Vendored
+1
-1
@@ -1335,7 +1335,7 @@ function odinSetupDefaultImports(wasmMemoryInterface, consoleElement) {
|
||||
|
||||
// return a bigint to be converted to i64
|
||||
time_now: () => BigInt(Date.now()),
|
||||
tick_now: () => BigInt(performance.now()),
|
||||
tick_now: () => performance.now(),
|
||||
time_sleep: (duration_ms) => {
|
||||
if (duration_ms > 0) {
|
||||
// TODO(bill): Does this even make any sense?
|
||||
|
||||
Reference in New Issue
Block a user