RE: [GD-Windows] More timer fun!
Brought to you by:
vexxed72
From: brian h. <bri...@py...> - 2002-08-30 05:04:07
|
> timGetTime() / GetTickCount() only return 32 bit values, AFAIK. You're right, DWORD...and that might be my problem right there. The Dell problem seems to be that the time reported isn't since system boot, but instead some arbitrarily high number, maybe out of the BIOS with battery backup. Hmmm, I was thinking sign extension might cause my bug, but that doesn't seem to be the case -- DWORD won't sign extend into a 64-bit value. I guess it's possible that sign extension from a 64-bit integer back down to a 32-bit integer could cause the problem, but I've looked over my code and basically it's all in 64-bit integers, with no funny casting or anything like that once timeGetTime() returns. Hmmmm. > There are some problems with keeping time on PC hardware. That would be one of the larger understatements I've seen =\ Brian |