Re: Measuring time differences



coder1024 wrote:
Flash Gordon wrote:

.... snip ...

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
>> tell them to go to a more appropriate group.

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
> immediately know if it isn't there. This is more helpful than
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/>
.



Relevant Pages

  • Re: Measuring time differences
    ... >> the OP was provided with re-directions by other posters. ... > the OP and your suggestion of gettimeofday I can say quite categorically ... if you actually know the platform you can point the poster in the ... the OP didn't provide specifics as to their environment. ...
    (comp.lang.c)
  • Re: Measuring time differences
    ... 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 tell them to go to a more appropriate group. ... the OP didn't provide specifics as to their environment. ... 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. ...
    (comp.lang.c)
  • Re: Measuring time differences
    ... to provide a thread to pull which I felt might solve their problem. ... 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, but if you don't know the platform the ONLY thing you can sensibly do is tell them to go to a more appropriate group. ...
    (comp.lang.c)
  • Re: Entourage 2004 Login Problem
    ... Thanks for the suggestion. ... environment, we're using Basic Authentication, which is where we seem to be ... communication with Entourage. ... > Hi Erik ...
    (microsoft.public.mac.office.entourage)
  • Re: Runtime Error 6 Overflow
    ... If you can find a machine where the problem is repeatable, then run your application on that machine as the very first application after the machine boots. ... they have a client server installation of 25 PCs. ... The specification of all the environment is (including ... in need of you Expert's view and suggestion to resolve the issue. ...
    (microsoft.public.vb.general.discussion)