Article View: borland.public.cppbuilder.nativeapi
Article #8818Wait Functions - Sleep
From: McKool
Date: Mon, 20 Sep 2004 07:21
Date: Mon, 20 Sep 2004 07:21
15 lines
1464 bytes
1464 bytes
Hello, i need to count in milliseconds, but that count must to be exact.
I'm using the Sleep function but is not always the same result....
InitTime = GetTickCount();
Sleep(25);
MittleTime = GetTickCount() - InitTime;
Hier MittleTime is 3 or 4 times 31 or 32 (i assumed that +/- 7 millis is
what the function need to get and give the time)... and some oder times 15
or 16 (so, less time than the specified ni the Sleep function).
what can i do to get always 25 ml of delay? I read something about
Multimedia timers... can i get with it the right timing ?
--
Keneth Wagner.
Technical Details
Message-ID:
<414e8404$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e777b9375f8aeb3,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "McKool" <kenethw@peak-system.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Wait Functions - Sleep Date: Mon, 20 Sep 2004 09:21:32 +0200 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 213.157.13.214 Message-ID: <414e8404$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1095664644 213.157.13.214 (20 Sep 2004 00:17:24 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail