Need highly accurate timer on Node JS

Its a Node JS specific question however it does have Bitcoin / Bitcore applications. Any solution to Node JS timer not being very accurate?

take a look at process.hrtime()

Hi Manuel, I don’t have a timer issue in Node JS, but I am facing the following problem: when I get transactions using bitcore-p2p parallelly I use setInterval(cb, ms) global function.
After running the script for a while the process that gets transactions, blocks setInterval(cb, ms) process.
Can you help, please?

Thank you in advance!

1 Like

For general programming questions please use http://stackoverflow.com/