setInterval not accurate

Hello, I'm using setInterval for every 10 seconds to store 10000 in json file and adding another 10000 so total 20000 and so on. I notice that setInterval isn't accurate like when it's 120 seconds which is 2 minutes it's 240000 in JSON file so is there another way to calculate the time in every 10 seconds?
2 Replies
d.js toolkit
d.js toolkit14mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
treble/luna
treble/luna14mo ago
not djs related, #other-js-ts
Want results from more Discord servers?
Add your server