Mail Archives: djgpp/1995/10/17/21:10:15
There have been many different answers to my initial question (what is the
real clock() unit, and which constant to use to translate from clock() units
to seconds) thanks.
But, I think the problem is not to be consistent with such or such ANSI
or POSIX specs. For a compiler like GNU wich is often used in replacement of
other commercial compilers, I think it is a goal to be compatible with ALL
the rules (ANSI, POSIX...).
So, in our example, it would be great in DJGPP v2 to have declarations of
_ALL_ the constants :
CLK_TCK
CLOCKS_PER_SEC
... others constants
and to have them _ALL_ equal to the same value.
So, the source code with clock() coming from another compiler will run
correctly once compiled with djgpp.
I'm waiting for reactions to this proposition. I hope dj delorie will hear of it.
Eric.
- Raw text -