🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sleep time resolution

#11459
From: Michel Leunen
Date: Thu, 12 Feb 2004 11:41
20 lines
1744 bytes
Detlef wrote:

> a ttime has two problems:
> - it depends on the message system, it is not independent what happens on
> the GUI ( that is the reason for the thread)
> - the maximum resolution is 1/60 second

Try using a multimedia timer. You can have a resolution of about 1ms 
with such a timer.
I've a component on my site which encapsulates the multimedia timer:
http://www.leunen.com/download/mmtimer.zip

Michel
-- 
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, C++BuilderX, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Technical Details
Message-ID: <402b665e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <402b4f78$1@newsgroups.borland.com> <MPG.1a9574fc30494ef7989719@newsgroups.borland.com> <402b631f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,3e6954a6a5dc7821
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-12 04:09:34 PST
Date: Thu, 12 Feb 2004 12:41:12 +0100
From: Michel Leunen <mleu@STOPSPAMskynet.be>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Sleep time resolution
References: <402b4f78$1@newsgroups.borland.com> <MPG.1a9574fc30494ef7989719@newsgroups.borland.com> <402b631f$1@newsgroups.borland.com>
In-Reply-To: <402b631f$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 80.200.29.10
Message-ID: <402b665e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076586078 80.200.29.10 (12 Feb 2004 03:41:18 -0800)
Lines: 20
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail