Xref: news-dnh.mv.net comp.os.msdos.djgpp:2714 Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!cea.fr!hudson!nicolas From: nicolas AT jupiter DOT ceng DOT cea DOT fr (Eric NICOLAS) Newsgroups: comp.os.msdos.djgpp Subject: Re: clock() unit ? Date: 17 Oct 1995 07:09:22 GMT Organization: CEA (france) Lines: 24 Distribution: world Reply-To: nicolas AT jupiter DOT ceng DOT cea DOT fr Nntp-Posting-Host: 132.168.30.100 To: djgpp AT sun DOT soe DOT clarkson DOT edu Dj-Gateway: from newsgroup comp.os.msdos.djgpp 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.