4 ms·
zstd normally uses timespec_get() for measuring wall-clock time. But that's available only since C11. For older standards, it uses clock(); but that returns CPU
by jwilk 4y ago
zstd normally uses timespec_get() for measuring wall-clock time. But that's available only since C11. For older standards, it uses clock(); but that returns CPU time, which is wrong.
https://github.com/facebook/zstd/pull/3165 https://github.com/facebook/zstd/pull/3165