DGL https://delphigl.com/forum/ |
|
pc (speed) independent timer? https://delphigl.com/forum/viewtopic.php?f=19&t=2203 |
Seite 1 von 1 |
Autor: | noeska [ Mo Nov 17, 2003 20:05 ] |
Betreff des Beitrags: | pc (speed) independent timer? |
I use a timer to call a procedure every 16ms. On my pc this works ok. But on another pc (cyrix 700mhz) it seems to mis half the calls. Is there a pc (speed) independent timer? It seems that 16ms is not equal on all pc's? Thanks for your answer in advance! I accidently made a 'gast' message. That one my be deleted. |
Autor: | Flash [ Mo Nov 17, 2003 23:39 ] |
Betreff des Beitrags: | |
I think most Timers demand on Processorspeed. Maybe it's possible to Call the Processorspeed and then you're able to calculate it. May you have to write your own function for this... Sometimes a man has to do, what men have to do... ![]() |
Autor: | LarsMiddendorf [ Mo Nov 17, 2003 23:45 ] |
Betreff des Beitrags: | |
The most exact timer value can be retrieved by using QueryPerformanceCounter and QueryPerformanceFrequence. The resolution of the Delphi TTimer component is only 55ms. |
Autor: | noeska [ Di Nov 18, 2003 19:20 ] |
Betreff des Beitrags: | |
i have a look at QueryPerformanceCounter and QueryPerformanceFrequence. yesterday if found the threader timer from http://www.carlosb.com on torry. It seems to do the trick also. It does not use a timer but uses the timing from a thread. |
Autor: | Frase [ Sa Jan 10, 2004 12:41 ] |
Betreff des Beitrags: | |
It is also interesting that procedures called by a timer with an interval about 10 ms are called more often, when you move the cursor on the taskbar or the sourcecode of your application in delphi. |
Seite 1 von 1 | Alle Zeiten sind UTC + 1 Stunde |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |