Re: Measuring time differences
- From: "Chuck F. " <cbfalconer@xxxxxxxxx>
- Date: Sun, 18 Dec 2005 22:25:15 -0500
coder1024 wrote:
Flash Gordon wrote:.... snip ...
>> tell them to go to a more appropriate group.
The point is you have ABSOLUTELY NO CLUE as to what might be helpful to the OP and your suggestion of gettimeofday I can say quite categorically is of ABSOLUTELY NO HELP and so a COMPLETE waste of everyone's time. Hence, if you actually know the platform you can point the poster in the right direction AND tell them to go to a more appropriate group (suggesting a solution without redirecting them is inappropriate), but if you don't know the platform the ONLY thing you can sensibly do is
> immediately know if it isn't there. This is more helpful than
gettimeofday() will work very well if available in the OP's development environment. the OP didn't provide specifics as to their environment. I do know the platform. I've developed SW on Windows using cygwin and gcc and successfully used gettimeofday() when in a similar situation which is why I suggested it. I've also developed using Visual C++. I don't know about other environments (Borland C++, etc.). Anyway, the OP can take 2 minutes to try and call the function and will
your ranting. I mean, really, did you just get out of bed on the wrong side this morning? Dare I say... relax? :-)
Regardless, there's also the APR which will almost certainly be available on the OP's platform if they want to put in the effort to add a product to their environment and dependencies list.
To illustrate Flashs point, the following is perfectly valid implementation of gettimeofday():
unsigned long gettimeofday(void) {
return 1234;
}If it "isn't there" simply add it to your system library, etc. Then it will be there. However, it is somewhat doubtful that it will do what you really want. The reason is that its action, calling parameters, return values, side effects, etc. are totally undefined, because IT IS NOT STANDARDIZED. In this newsgroup we deal ONLY with the standardized C language, as defined by the various ISO standards (C89, C90, C99) and their predecessor (K&R C). This means we have a reasonable chance of knowing what we are talking about. This also means that when someone asks about a non-standard item, we send him to a newsgroup dealing with his particular system, where someone may have appropriate knowledge and where invalid answers are fairly likely to be so flagged.
-- "If you want to post a followup via groups.google.com, don't use the broken "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers." - Keith Thompson More details at: <http://cfaj.freeshell.org/google/> .
- Follow-Ups:
- Re: Measuring time differences
- From: coder1024
- Re: Measuring time differences
- References:
- Measuring time differences
- From: Dominik Wallner
- Re: Measuring time differences
- From: coder1024
- Re: Measuring time differences
- From: Keith Thompson
- Re: Measuring time differences
- From: coder1024
- Re: Measuring time differences
- From: Keith Thompson
- Re: Measuring time differences
- From: coder1024
- Re: Measuring time differences
- From: Randy Howard
- Re: Measuring time differences
- From: coder1024
- Re: Measuring time differences
- From: Flash Gordon
- Re: Measuring time differences
- From: coder1024
- Measuring time differences
- Prev by Date: Re: integers to binary
- Next by Date: Re: Measuring time differences
- Previous by thread: Re: Measuring time differences
- Next by thread: Re: Measuring time differences
- Index(es):
Relevant Pages
|