From: Eric Backus Subject: Re: A little correction for DGJCC222 To: cignoni AT suncube DOT CNUCE DOT CNR DOT IT Date: Mon, 14 Dec 92 9:43:09 PST Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Mailer: Elm [revision: 66.25] > Dear Mr. DJ > I just installed DGJCC222 and gave it a look. It's a very well done job. > I found only a little (by now!) "bug" in the file limits.h. > The old-styled constant CLK_TCK is improperly defined. > It should have the same value as CLOCKS_PER_SEC (ANSI standard) > found in time.h I don't believe this is true. CLK_TCK specifies the number of clock ticks per second of the system clock. CLOCKS_PER_SEC specifies the number that you must divide the output of the clock() function to get seconds. They are not usually equal. The clock() function typically returns a number of microseconds (making CLOCKS_PER_SEC equal to 1000000). However, the system clock is typically much coarser than that, which just means that the output of the clock() function will change in big jumps. I think the current values of these constants are correct (except perhaps CLK_TCK should probably be some strange number like 182? to match the DOS timer interrupt?) > I'd like to thank you for your job: djgcc is the only useful C-compiler under > MS-DOG! I couldn't agree more. > Vincenzo "Enzo" Romano > Dept. of Computer Science ____.-.____ ... to boldly go where no > Univ. of Pisa ITALY ==== `--.___,--' Man has gone before! > `\______/' > `-----' -- Eric Backus ericb AT lsid DOT hp DOT com (206) 335-2495