News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

milliseconds

Started by G`HOST, December 01, 2005, 07:49:48 PM

Previous topic - Next topic

G`HOST

Hi,
Is the 1000 milliseconds different on different machines in actual time?
My question is if i am trying to implement a timer with say 1000 milliseconds timeout value,then will it work same on different machines or the timeout (in actual clock time) will change ?If it does depends on system to system then whats the good way to work around it so i get same value at every machine?
Thanx .

MichaelW

A millisecond is a millisecond, but you will see significant variations in accuracy, dependent not so much on the machine as on the length of the timed interval, the timing function and/or method used, and how heavily loaded (task-wise) the system is. You can minimize the inaccuracies by increasing the length of the timed interval and/or using a higher-resolution timer and/or boosting your process's priority class.

MSDN: Timers

MSDN: SetPriorityClass
eschew obfuscation