grain
grain copied to clipboard
Time resolution on WASI runner
The time resolutions on Windows are pretty bad in our WASI runner (uvwasi). @ospencer tried to fix this in https://github.com/nodejs/uvwasi/pull/182 but 2 subsequent calls to processCpuTime and threadCpuTime result in the same time on Windows.
As of #1585, we're using <= to compare times in the tests, but we should look on making the resolution better on Windows.
These two clocks were removed in WASI Preview 2. We may decide not to do this.