modern timers in DOS (32bit) (Developers)
Hi Japheth!
> Absolutely true!
>
> > If you only want to measure time in a very fine-grained way, use the
> TSC.
> > Every Intel CPU since at least Pentium had a time stamp counter and most
> > other brands introduced one not much later. The time stamps typically
> have
> > a very high resolution, for example CPU clock cycles, and processors may
> > even compensate the counts for you when changing clock speeds in power
> > saving modes.
>
> If you need a resolution of 0.1 to 1 ms, just use the normal, unmodified
> int 8 timer and read the values of the timer at the events you are
> interested in. Here's my standard code:
>
I mentioned it in another reply ,... I couldn´t get more than 1024Hz (with my code)
I will test your code!
Thanks for your code snippet!
Low Level
ps: I´m new in this forum, and I´m really surprised how many answers and hints I got in one day from all of you !!! Didn´t expect that,...awesome!!!
Complete thread:
- modern timers in DOS (32bit) - LowLevel, 05.05.2022, 11:11 (Developers)
- modern timers in DOS (32bit) - bretjohn, 05.05.2022, 19:05
- modern timers in DOS (32bit) - mceric, 05.05.2022, 20:53
- modern timers in DOS (32bit) - Japheth, 06.05.2022, 08:06
- modern timers in DOS (32bit) - LowLevel, 06.05.2022, 08:37
- modern timers in DOS (32bit) - LowLevel, 06.05.2022, 08:29
- modern timers in DOS (32bit) - RayeR, 18.05.2022, 22:40
- modern timers in DOS (32bit) - Japheth, 06.05.2022, 08:06
- modern timers in DOS (32bit) - LowLevel, 06.05.2022, 08:08
- modern timers in DOS (32bit) - bretjohn, 06.05.2022, 20:01
- modern timers in DOS (32bit) - tkchia, 08.05.2022, 17:57
- modern timers in DOS (32bit) - bretjohn, 06.05.2022, 20:01
- modern timers in DOS (32bit) - mceric, 05.05.2022, 20:53
- modern timers in DOS (32bit) - Laaca, 05.05.2022, 20:56
- modern timers in DOS (32bit) - LowLevel, 06.05.2022, 08:30
- modern timers in DOS (32bit) - bretjohn, 05.05.2022, 19:05