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...
This commit is contained in:
Rein Klazes 1998-10-11 14:04:10 +00:00 committed by Alexandre Julliard
parent cd7986ba01
commit 43daa7a32f
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}