D
Dr John Stockton
JRS: In article <[email protected]>
, dated Tue, 29 Nov 2005 23:16:32 local, seen in
If you were to write only on what you understand, this newsgroup would
be much emptier.
Don't confuse accuracy, resolution, and change interval.
Every PC has an interrupt at nominally 54.925495.. ms, which corresponds
to 18.206481...Hz. That's about 2^16 ticks per hour, and exactly
0x1800B0 ticks per 24 DOS hours.
The 18.2 Hz is in fact 1.19 MHz divided by 65536 in Timer Channel 0; the
1.19 MHz is a twelfth of 14.3 MHz, which is traditionally on ISA bus pin
30B, and that is 315.0/22 MHz, and 315/22/4 MHz is the US NTSC TV "color
sub-carrier" frequency, which was used by CGA, and 315/22/3 MHz is 4.77
MHz, the original PC clock frequency.
See <URL:http://www.merlyn.demon.co.uk/pas-time.htm> and Kris
Heidenstrom's The Timing FAQ</a> :
358631 Feb 1 1996 ftp://garbo.uwasa.fi/pc/programming/pctim003.zip
pctim003.zip Timing on the PC under MS-DOS, K.Heidenstrom
Every DOS PC has a 54.9 ms interrupt, and *at least* up to Win98 every
Windows DOS box can see it.
, dated Tue, 29 Nov 2005 23:16:32 local, seen in
news:comp.lang.javascript said:As I like to say: "Do not mix a God's gift with a omlet" (means "to do
not think the same on two totally diffrent things").
If you were to write only on what you understand, this newsgroup would
be much emptier.
When you run a separate application it can be only as accurate as the
system tick of the particular OS (50ms? on Win98 -... - 10ms? on
Linux).
Don't confuse accuracy, resolution, and change interval.
Nevertheless the system usually keeps you out of this timing "misery",
so say in Java you even can use nanoseconds and still get some
true-looking results. It achieved by calculating the average interval
by formula ms = (system tick)*(n of ticks) + (lower byte spice)
This explain some fantastic system ticks like 54.9 ms ;-) I assure you
that no system runs on such periods.
Every PC has an interrupt at nominally 54.925495.. ms, which corresponds
to 18.206481...Hz. That's about 2^16 ticks per hour, and exactly
0x1800B0 ticks per 24 DOS hours.
The 18.2 Hz is in fact 1.19 MHz divided by 65536 in Timer Channel 0; the
1.19 MHz is a twelfth of 14.3 MHz, which is traditionally on ISA bus pin
30B, and that is 315.0/22 MHz, and 315/22/4 MHz is the US NTSC TV "color
sub-carrier" frequency, which was used by CGA, and 315/22/3 MHz is 4.77
MHz, the original PC clock frequency.
See <URL:http://www.merlyn.demon.co.uk/pas-time.htm> and Kris
Heidenstrom's The Timing FAQ</a> :
358631 Feb 1 1996 ftp://garbo.uwasa.fi/pc/programming/pctim003.zip
pctim003.zip Timing on the PC under MS-DOS, K.Heidenstrom
Every DOS PC has a 54.9 ms interrupt, and *at least* up to Win98 every
Windows DOS box can see it.