A question I've never seen asked before...

arghhhhhhhhh

Distinguished
Sep 27, 2002
1
0
18,510
What’s the smallest amount of time a pc can record? Say you wanted to keep a log (albeit a big log) of events with entries for time between events, what’s the smallest amount of time you could log?
 

Schmide

Distinguished
Aug 2, 2001
1,442
0
19,280
The standard PC 8259 interrupt controller (no longer used but some legacies last forever) fires of at 18.2 ticks a second. Why 18.2? Well if you take 65536 (16 bits) and divide that by the number of seconds in an hour (3600) you get 18.2. So accurately that's your resolution. However, the windows operating system will fire off messages at a higher rate for multimedia applications. However, the accuracy of these messages is suspect. There are other ways of timing things. You can calculate the refresh rate of the video card and use the VBI (Vertical Blank Interrupt) for pseudo accurate timer. Chime in if anyone knows any more tricks.

Complicated proofs are proofs of confusion.
 

Schmide

Distinguished
Aug 2, 2001
1,442
0
19,280
Oh I'm sorry I didn't answer your question. The answer is 1/(65636/3600)= 0.054931640625 seconds.

Complicated proofs are proofs of confusion.