On Thu Jul 11 15:32:39 2024 +0000, Grigory Vasilyev wrote:
@ishitatsuyuki I looked at the `NtDelayExecution` code, we can easily get rid of calling `NtQuerySystemTime`. Probably in Windows there is no indication anywhere that we must call `NtQuerySystemTime` in `NtDelayExecution`. I think we can use `CLOCK_MONOTONIC` there, if its accuracy is not enough, then try using `CLOCK_PROCESS_CPUTIME_ID`.
Feel free to write a patch if you want to, but it really just has nothing to do with the precision problem and is out of scope of this MR.