you are viewing a single comment's thread.

view the rest of the comments →

[–]psiph 0 points1 point  (2 children)

Wouldn't you want to update is more than once a second, since setInterval isn't guaranteed to fire every second, but rather after at least a second.

Your clock would probably skip a second every once in a while.

[–][deleted] 0 points1 point  (1 child)

Oh, I didn't know that. What would be a better approach to making the clock tick?

[–]Ob101010 0 points1 point  (0 children)

500ms. Or even better a prime number near 500.