Accepted simulation time in seconds inside a system lifecycle callback.
Signature
time: Numbertime advances with accepted simulation ticks, not wall-clock time or browser rendering. The embedding host chooses the fixed cadence. Failed ticks do not publish new time; this immutable binding is unavailable at module scope.
Examples
Read simulation time
Step once: time is positive after the first accepted tick.
Press Step once to reach the checked result.
main.kj⌘ / Ctrl + Enter
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
true
Rust definition
Machine supplies accepted simulation seconds as Value::Number.
View Rust documentation →Support: runtime