Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
export
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
test
Function · 0.90
run
Function · 0.85
call
Function · 0.85
stub_clocks
Function · 0.85
Calls
no outgoing calls
Tested by
1
test
Function · 0.72