Query Windows clock frequency and use reported max
authorBrandon Paupore <brandon.paupore@wdc.com>
Tue, 12 Oct 2021 19:00:41 +0000 (14:00 -0500)
committerBrandon Paupore <brandon.paupore@wdc.com>
Tue, 12 Oct 2021 19:00:51 +0000 (14:00 -0500)
commit3d0d549ab34f64d19a4ee0a0ffdd4f79ebba48ec
tree417f0330cf2b5e2470389c7fb2b8e2ef0d663241
parentb1ebcbce6499fed58f87d1bcbfd50899c508d3ab
Query Windows clock frequency and use reported max

Previously FIO used the Windows lower-bound clock frequency of 64 Hz for
its helper-thread. This caused IOPS/BW logs to have large drift between
timestamps when not using per-unit logging for those measurements.

Now query the current resolution and set to use the maximum for more
accurate timestamps. Note that the resolution is automatically restored
after FIO terminates.

Signed-off-by: Brandon Paupore <brandon.paupore@wdc.com>
Makefile
helper_thread.c
os/os.h
os/windows/dlls.c [new file with mode: 0644]
stat.c