A delay that really waits: on a timer, rounded up to whole milliseconds, for a millisecond
or more, and by spinning for a shorter wait, which a timer cannot keep. A timer can run over
by the event loop's own latency, so a program that needs exact step timing drives its
motor from a microcontroller rather than from Node.
A delay that really waits: on a timer, rounded up to whole milliseconds, for a millisecond or more, and by spinning for a shorter wait, which a timer cannot keep. A timer can run over by the event loop's own latency, so a program that needs exact step timing drives its motor from a microcontroller rather than from Node.