Mail Archives: djgpp/1997/02/16/07:29:02
> Will somebody who sees these problems please try debugging them?
> `uclock' works on MSDOS (at least for me), so I suspect that something in
> it is incompatible with Windows. It reprograms the system timer, but
> that in itself doesn't necessarily mean that it shouldn't work.
uclock() will give negative numbers if the OS prevents it from
reprogramming the timer chip (or resets it). The default clocking
mode is a stupid 50% duty cycle that doesn't count linearly (it counts
even numbers up to N, then triggers, then goes back and counts the odd
numbers up to N, then resets).
There is no way to get a meaningful result in this mode, and the clock
works just fine in the other mode (count to N then pulse-trigger).
- Raw text -