🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1206

GetTickCount

#1206
From: Paul at NCF
Date: Mon, 08 Oct 2007 06:50
24 lines
1654 bytes
Hi,

I've got a timer system that uses GetTickCount for calculate the number
ticks (in milliseconds), for timer calculations etc.

This works fine on my laptop, which is quite a good HP running XP.  But on
the target system running NT and is a lower spec PC, 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 timer calculations for handling 
timers of
various lengths?

Regards,

Paul

PS.  my perception of accuracy is based on the Now() time logged in a file 
activitie (hours,mins,secs,milliseconds).
Technical Details
Message-ID: <4709d350@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,28d52fbe2eeb86d8,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Paul at NCF" <notplmacca@clara.co.uk>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: GetTickCount
Date: Mon, 8 Oct 2007 07:50:58 +0100
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 86.142.233.185
Message-ID: <4709d350@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1191826256 86.142.233.185 (7 Oct 2007 23:50:56 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail