Skip to content

Are Time.ticks global or per-VM? #1166

Answered by phoddie
tve asked this question in Q&A
Jun 27, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

All VMs use the same source of time. I'll update the docs to note:

On devices that supports multiple concurrent JavaScript virtual machines (for example. using Wokers), the clock used to determine the value of the ticks property is the same across all virtual machines. This allows tick values created in one machine to be compared with values from another.

Good?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tve
Comment options

@phoddie
Comment options

Answer selected by tve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants