Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

modern timers in DOS (32bit) (Developers)

posted by LowLevel, 06.05.2022, 08:37

Hi Japheth!


> Absolutely true! :-D
>
> > 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:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 218 users online (0 registered, 218 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum