MCPcopy Create free account
hub / github.com/bytecodealliance/ComponentizeJS / now

Function now

test/cases/wall-clock/wall-clock-t.js:1–5  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export function now() {
2 const seconds = BigInt(Math.floor(Date.now() / 1e3));
3 const nanoseconds = (Date.now() % 1e3) * 1e6;
4 return { seconds, nanoseconds };
5}

Callers 4

testFunction · 0.90
runFunction · 0.85
callFunction · 0.85
stub_clocksFunction · 0.85

Calls

no outgoing calls

Tested by 1

testFunction · 0.72