Commit 43daa7a3 authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

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...
parent cd7986ba
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment