grain icon indicating copy to clipboard operation
grain copied to clipboard

Time resolution on WASI runner

Open phated opened this issue 2 years ago • 1 comments

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.

phated avatar Apr 23 '23 01:04 phated

These two clocks were removed in WASI Preview 2. We may decide not to do this.

ospencer avatar Apr 05 '24 20:04 ospencer