Implemented a workaround for a bug in node.js when calling `setTimeout` with a non-integer delay.