That could be the reason. I'm testing on Windows.
Windows only supports millisecond resolution.A valid solution to this is probably to have anything > 0 and < 1 ms sleep for at least 1ms. Or maybe it can round up to the next ms.
For now, you can simply sleep for 1ms. -Steve