🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetTickCount() Example

#15823
From: Greg Stantin
Date: Fri, 13 Jun 2003 21:03
16 lines
1462 bytes
Thanks Martin

One question, i am assuming the StartTicks variable is where i do
StartTicks = GetTickCount()

and the EndTicks is where it call gettickcount again after the
processing
has ended?


> unsigned long ElapsedTicks=500;            // to round +-1 sec
>
> if(StartTicks<EndTicks) ElapsedTicks+=(EndTicks-StartTicks);
> else ElapsedTicks+=(EndtTicks+(0xFFFFFFFF-StartTicks));
> // minimum time is 1 second
> ElapsedTicks/=1000;
Technical Details
Message-ID: <3eea3c24$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ee9e239@newsgroups.borland.com> <3eea3389$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,aacf7a7643439ceb
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-13 14:07:43 PST
Reply-To: "Greg Stantin" <gstantin@stantonassoc.com>
From: "Greg Stantin" <gstantin@stantonassoc.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ee9e239@newsgroups.borland.com> <3eea3389$1@newsgroups.borland.com>
Subject: Re: GetTickCount() Example
Date: Fri, 13 Jun 2003 16:03:40 -0500
Lines: 18
Organization: Stantin Assoc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 65.69.10.8
Message-ID: <3eea3c24$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1055538212 65.69.10.8 (13 Jun 2003 14:03:32 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail