Sets an accurate timeout that respects date, and the result can't be less than the specified amount of milliseconds. Implemented by recursive execution of native setTimeout. The error is about 10ms.
npm install set-accurate-timeout
Install dependencies and build library
npm run test