From c582cab1fb1708109f2aa26aab8eba189198e729 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 6 Mar 2006 03:04:38 +0000 Subject: [PATCH] windows-rx-lwp-clock-20060305 clock_Init() was broken because it would initialize rxi_clock0 with QueryPerformanceCounter() and then call clock_UpdateTime(). So instead of getting an ever increasing value you would get a fixed value determined by how long it takes to make a function call between to QueryPerformanceCounter() calls. --- src/rx/rx_clock_nt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/rx/rx_clock_nt.c b/src/rx/rx_clock_nt.c index cab18d435..96bf81e8b 100644 --- a/src/rx/rx_clock_nt.c +++ b/src/rx/rx_clock_nt.c @@ -50,10 +50,8 @@ clock_Init(void) OutputDebugString("No High Performance clock, exiting.\n"); exit(1); } - clockInitialized = 1; - (void)QueryPerformanceCounter(&rxi_clock0); - + clock_UpdateTime(); } -- 2.39.5