Board index » cppbuilder » GetTickCount - Accuracy question?
Paul at NCF
CBuilder Developer |
GetTickCount - Accuracy question?2007-10-08 02:50:47 AM cppbuilder31 Hi, I've got a timer system that uses GetTickCount for calculate the number ticks (in milliseconds), for timers etc. This works fine on my laptop, which is quite a good HP running XP. But on the target system running NT and is lower spec, its not accurate at all; usually timers are 10-20% longer (eg. A 15 second timer ends up being about 18). I've tried using the performance counter as a more accurate system, but I'm not getting very good results even on my HP. Has anyone got any clues or ideas for a tick counter for handling timers of various lengths? Regards, Paul PS. my perception of accuracy is based on the Now() time logged in a file (hours,mins,secs,milliseconds). |