3 ms·
I don't think there is any guarantee that setTimeout will run at exactly 1000. Though didn't expect it to run earlier, it definitely could run later.
by gregoriol 2y ago
I don't think there is any guarantee that setTimeout will run at exactly 1000. Though didn't expect it to run earlier, it definitely could run later.
- bufferoverflow 2y agoSame. I expected it could take a few ms longer. But less? Apparently that's a thing.