 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
gatzhammers Guest
|
Posted: Wed Jun 01, 2005 8:47 am Post subject: very short time in delphi |
|
|
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
|
Posted: Wed Jun 01, 2005 3:34 pm Post subject: Re: very short time in delphi |
|
|
"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
|
Posted: Thu Jun 02, 2005 9:45 am Post subject: Re: very short time in delphi |
|
|
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 |
|
 |
|
|
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
|
|