Re: [AD] General time-passed function |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
I'm going to need just such a function very soon. Eating up cycles with an
interrupt at 1000/sec. in order to get 1 ms. resolution under DOS (if I
understand the mechanism correctly) seems a waste when you can just read the
PIC chip. So I vote yes, and will be glad to help if needed. I have the
16-bit DOS code for this.
At 09:57 PM 1/28/00 +0000, you wrote:
>Hi,
>
>This is a subject that's come up before -- people wanting a
>general record of time passing. The standard answer is that
>they should install a timer handler, and increase their own
>variable, I suppose. However, if we make a dedicated function,
>it could offer better accuracy than Allegro's timer callbacks.
>Under Linux and possibly other Unixes you can get the time
>pretty accurately, and this is true to ms resolution in Windows
>too AFAIK. Might this be worth adding? It's a fairly easy
>thing to do -- I can supply code for Linux and DOS box under
>Windows (95/98 definitely).
>
>George
>
>
>