BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

very short time in delphi

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.misc
View previous topic :: View next topic  
Author Message
gatzhammers
Guest





PostPosted: Wed Jun 01, 2005 8:47 am    Post subject: very short time in delphi Reply with quote



Hello

I need an event excecuted in very short intervals (0,000111s). I've
tried to do it with the intervalTimer in Delphi 5, but it is only able
to start events in miliseconds. Is there any other way to do it?

Thanks for your help
Sebastian Gatzhammer

Back to top
Bruce Roberts
Guest





PostPosted: Wed Jun 01, 2005 3:34 pm    Post subject: Re: very short time in delphi Reply with quote




"gatzhammers" <s.gatzhammer (AT) gmx (DOT) net> wrote


Quote:
I need an event excecuted in very short intervals (0,000111s). I've
tried to do it with the intervalTimer in Delphi 5, but it is only able
to start events in miliseconds. Is there any other way to do it?

I don't think one can get better than 1ms resolution in a Windows timer. You
might want to check out the Win SDK help for entries on multimedia timers -
in particular check out About Multimedia Timers.



Back to top
Bob Swart (aka Dr.Bob)
Guest





PostPosted: Thu Jun 02, 2005 9:45 am    Post subject: Re: very short time in delphi Reply with quote



Hi Sebastian,

Quote:
I need an event excecuted in very short intervals (0,000111s). I've
tried to do it with the intervalTimer in Delphi 5, but it is only able
to start events in miliseconds. Is there any other way to do it?

Yes, use the QueryPerformanceCounter and QueryPerformanceFrequency
functions (from the Windows unit) to measure short time intervals at a
high resolution.

Quote:
Thanks for your help
Sebastian Gatzhammer

Groetjes,
Bob Swart (aka Dr.Bob - www.DrBob42.com)

--
Bob Swart Training & Consultancy (eBob42) - Borland Technology Partner
Delphi 2005 PDF manuals available from http://www.drbob42.com/training

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.components.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.