I wish that was true but you can easily see it drifting in Chrome
let lastms
function tick() {
if (lastms === undefined)
lastms = new Date().getMilliseconds()
else if (lastms !== new Date().getMilliseconds())
throw new Error('Drifted')
}
setInterval(tick, 1000)