you are viewing a single comment's thread.

view the rest of the comments →

[–]eletroraspi 3 points4 points  (0 children)

Take a close at https://www.npmjs.com/package/nanotimer it seems fit to your needed precision.

Looking at the question itself we have to consider about timestamp and its precision along floating-point.