- - * - WhiteUnicorn - * - -




* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >


Frequently Asked Questions

TTimer not firing at correct interval

Question:

When I create the TTimer component, it does not fire at the correct specified time. How can I get more accurate results?

Answer:

Windows timer event were not designed to accommodate 
hi-resolution timing. In other words, while you may set the 
timer to fire every 1000 milliseconds, it may fire sometimes 
at intervals longer than 1000 milliseconds. Values below 55 
milliseconds will never fire on time under Windows, since this 
is the Timer components minimum resolution. You can get the 
time during the timer event and compare it to the last time 
the event fired to receive a better timing resolution.



* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >



- - * - Anastasija aka WhiteUnicorn - * - - LJLiveJournal
PFPhotoFile