Re: Bug in eu2c

new topic     » goto parent     » topic index » view thread      » older message » newer message

Mic writes:
>>Mic also reports a similar factor of ten error in the reported time.
>>I assume he used DOS4GW too.
>
>Nope. I'm using CauseWay.
>Wich leads us to the question: "does time() work the way it should?"

I'm using WATCOM 10.6 where the value of
CLOCKS_PER_SEC is 100.
I wonder if WATCOM 11.0 defines CLOCKS_PER_SEC
as 1000?
Can someone check for
#define CLOCKS_PER_SEC ...
in \watcom\h\time.h?
I get the time by dividing (double)clock() / CLOCKS_PER_SEC

If clock() on 11.0 is returning a number 10x bigger than I expect,
then that would explain the problem.

I guess I should #include <time.h> to allow for any differences.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu