readRoomSeconds
readRoomSeconds(
world):number
The room’s clock in seconds, to the fraction of a tick: the tick the
player’s page steps over the steps a second, where a predicted command the
player sends now is stamped and the room runs it. A sound or a countdown
scheduled against it plays in step with what the player does: read it beside
the audio context’s currentTime and schedule a cue at room second at for
currentTime + at - readRoomSeconds(world). On the room and in a test, the
tick it steps next, whole. Read it between steps, in a view or a frame
callback: a system reads step.tick, which a correction’s
re-run gives again.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
Returns
Section titled “Returns”number