Article View: comp.std.c
Article #4816Re: CLOCKS_PER_SEC not defined
From: Stephen Baynes
Date: Fri, 16 Feb 1996 08:58
Date: Fri, 16 Feb 1996 08:58
23 lines
1284 bytes
1284 bytes
Ramin Sina (ramin@twinkie.gsfc.nasa.gov) wrote: : 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. It should be - you will have to take it up with your compiler vendor. -- Stephen Baynes baynes@mulsoc2.serigate.philips.nl Philips Semiconductors Ltd Southampton My views are my own. United Kingdom
Technical Details
Message-ID:
<DMv2A4.Br6@ukpsshp1.serigate.philips.nl>Path:
arc1-ca.pugleaf.net!phcoms4.seri.philips.nl!panther!baynesReferences:
<ramin.1174728902A@news.gsfc.nasa.gov>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!phcoms4.seri.philips.nl!panther!baynes From: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes) Subject: Re: CLOCKS_PER_SEC not defined Sender: news@ukpsshp1.serigate.philips.nl (account for localnews) Message-ID: <DMv2A4.Br6@ukpsshp1.serigate.philips.nl> Date: Fri, 16 Feb 1996 08:58:52 GMT References: <ramin.1174728902A@news.gsfc.nasa.gov> Organization: Philips Semiconductors, Southampton, UK X-Newsreader: TIN [version 1.2 PL2]