From 43daa7a32f105753c29a320a9bb1ed494fb78b90 Mon Sep 17 00:00:00 2001 From: Rein Klazes Date: Sun, 11 Oct 1998 14:04:10 +0000 Subject: [PATCH] GetTickCounts() has a granularity in windows of 25 msec's. Girotel's serial communication appears to depend on it, so I guess it's a feature... --- windows/message.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/message.c b/windows/message.c index 92189dae0c9..ccf471bf7f4 100644 --- a/windows/message.c +++ b/windows/message.c @@ -1848,7 +1848,8 @@ DWORD WINAPI GetTickCount(void) { struct timeval t; gettimeofday( &t, NULL ); - return ((t.tv_sec * 1000) + (t.tv_usec / 1000)) - MSG_WineStartTicks; + /* make extremely compatible: granularity is 25 msec */ + return ((t.tv_sec * 1000) + (t.tv_usec / 25000) * 25) - MSG_WineStartTicks; }