πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Wait Functions - Sleep

#8820
From: Evariste HORNECKER
Date: Mon, 20 Sep 2004 09:20
28 lines
1800 bytes
take a look at MSDN:

Using Multimedia Timers

"http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/h
tm/_win32_using_multimedia_timers.asp"

hope it helps

"McKool" <kenethw@peak-system.com> a οΏ½crit dans le message de
news:414e8404$2@newsgroups.borland.com...
> 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: <414ea0f3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <414e8404$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e777b9375f8aeb3
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
From: "Evariste HORNECKER" <evariste.horneckerSTOPTHESPAM@neosys.fr>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <414e8404$2@newsgroups.borland.com>
Subject: Re: Wait Functions - Sleep
Date: Mon, 20 Sep 2004 11:20:46 +0200
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 81.53.193.133
Message-ID: <414ea0f3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095672051 81.53.193.133 (20 Sep 2004 02:20:51 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail