Mail Archives: djgpp/1995/10/12/16:05:27
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:2595
|
Path: | news-dnh.mv.net!mv!news.sprintlink.net!tank.news.pipex.net!pipex!news.mathworks.com!newsfeed.internetmci.com!chi-news.cic.net!uwm.edu!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: | clock() unit ?
|
Date: | 12 Oct 1995 09:36:30 GMT
|
Organization: | Sun Microsystems, Inc.
|
Lines: | 13
|
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
|
Could someone tell in what unit is the result of clock() function ??
ANSI C tell that there should be a CLK_TCK constant which says that, but I found
somewhere in djgpp .H a #define CLK_TCK 100, and when trying that it is obvious
that this is wrong.
In fact, it seems that there are about 1 million clock() units per seconds. But
what is the real value ?
This is an important point in order to preserve compatibility between djgpp programs
and TurboC programs. I think there SHOULD be a CLK_TCK constant with the right value
in the standard .H.
- Raw text -