Quote:
Originally Posted by madlex
*

It is not multiplied, it is divided by..

Actually, for the old DOS enviroment the clock_t is used with the clock() function, and it is divided by the macro TICKS_PER_SEC, not CLOCKS_PER_SEC or CLK_TCK.

The form of TICKS_PER_SEC was:
#define TICKS_PER_SEC 18.2f

As you well said, this value represents the number of interupts that the timer emits per second.The clock() function is exactly the function that gets this number.

If you check it out, you'll see that this macro "works" only for Win 95 and over, nor for DOS.
*

The "divisor" is 65536 (not 65636).It is not a coincidence that this number represents 2^16+1, the maximum number of values a WORD can store.

thanks buddy, and about that multiply thing that's a slip of pen see the example of biostime() a similar macro has been used fro dividing the actual BIOS time
and about the buil;t in divisor that's also a typing mistake, you can imagine when you have to prepare and type the whole thing within a day

i regret these mistakes

Last edited by dssr; 13Jul2008 at 19:02..