Article View: borland.public.cppbuilder.nativeapi
Article #1221Re: GetTickCount
From: Bob Gonder
Date: Wed, 10 Oct 2007 16:22
Date: Wed, 10 Oct 2007 16:22
15 lines
1458 bytes
1458 bytes
Ted Lyngmo wrote:
>Are you doing something like this?
>
>... {
> SetTimer( NULL, 0, 15000, TimerProc );
>}
>
>TimerProc(..., dwTime ) {
> static DWORD dwLastTime=0;
> SetTimer( NULL, 0, 15000, TimerProc );
Just to let you know, that isn't needed, and can introduce drift.
The Timer normally continues firing until killed.
This code will reset the timer-start-time after an unknown message processing delay.
Technical Details
Message-ID:
<qoupg31jr5jp4jmpf6bmor22kj1s1361gu@4ax.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4709d350@newsgroups.borland.com> <470c5b61$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,28d52fbe2eeb86d8 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: GetTickCount Date: Wed, 10 Oct 2007 09:22:47 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <qoupg31jr5jp4jmpf6bmor22kj1s1361gu@4ax.com> References: <4709d350@newsgroups.borland.com> <470c5b61$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.81.231 X-Trace: newsgroups.borland.com 1192033364 69.69.81.231 (10 Oct 2007 09:22:44 -0700) Lines: 17 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail