Article View: comp.std.c
Article #4819CLOCKS_PER_SEC not defined
From: Ramin Sina
Date: Wed, 14 Feb 1996 23:41
Date: Wed, 14 Feb 1996 23:41
17 lines
910 bytes
910 bytes
Hello everyone, I am using a supposedly ansi c program in which I write #include <time.h> #if defined(__STDC__) && !defined(CLOCKS_PER_SEC) #error "CLOCKS_PER_SEC is not defined on this stupid compiler" #endif I get the error that CLOCKS_PER_SEC is not defined. I had thought that it was defined in standard C in the time.h header. I need CLOCKS_PER_SEC to time how long it takes for the program to run. Can anybody suggest how I can fix this problem. Thanks, Ramin Sina
Technical Details
Message-ID:
<ramin.1174728902A@news.gsfc.nasa.gov>Path:
arc1-ca.pugleaf.net!newsfeed.gsfc.nasa.gov!news!raminShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!newsfeed.gsfc.nasa.gov!news!ramin From: ramin@twinkie.gsfc.nasa.gov (Ramin Sina) Newsgroups: comp.std.c Subject: CLOCKS_PER_SEC not defined Followup-To: comp.std.c Date: Wed, 14 Feb 96 23:41:02 GMT Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA Message-ID: <ramin.1174728902A@news.gsfc.nasa.gov> NNTP-Posting-Host: ramin.gsfc.nasa.gov X-Newsreader: VersaTerm Link v1.1