The windows system APIs only take milliseconds. Make sure we round the sleep interval (in nanoseconds) upwards.