mirror of
https://github.com/steve-m/hsdaoh.git
synced 2025-12-10 07:44:41 +01:00
hsdaoh_test: fix ppm test on Windows
On some recent compilers the init flag inside struct time_generic is not zeroed, causing QueryPerformanceFrequency() to never be called.
This commit is contained in:
parent
29668d3758
commit
c9b0837c92
1 changed files with 2 additions and 2 deletions
|
|
@ -168,8 +168,8 @@ static void ppm_test(uint32_t len)
|
||||||
static uint64_t interval = 0;
|
static uint64_t interval = 0;
|
||||||
static uint64_t nsamples_total = 0;
|
static uint64_t nsamples_total = 0;
|
||||||
static uint64_t interval_total = 0;
|
static uint64_t interval_total = 0;
|
||||||
struct time_generic ppm_now;
|
struct time_generic ppm_now = { 0 };
|
||||||
static struct time_generic ppm_recent;
|
static struct time_generic ppm_recent = { 0 };
|
||||||
static enum {
|
static enum {
|
||||||
PPM_INIT_NO,
|
PPM_INIT_NO,
|
||||||
PPM_INIT_DUMP,
|
PPM_INIT_DUMP,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue