Answer the question
In order to leave comments, you need to log in
How to run a function exactly every n ms in NodeJS?
Hello! Started writing a Web application to get the weight from a weight platform that a car is passing over. You need to do this in real time, because. further processing and plotting is planned.
Backend - NodeJS + Express.
How can I run a function to read the weight every n ms, exactly, without the 200-1500 ms spread that setInterval() and setTimeout() give? Or is it worth writing this part of the program in another language (which one would you recommend)?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question