Re: Measuring time



kostas.tzoumas@xxxxxxxxx wrote:

What do I have to measure - CPU time or calendar time?

You have clock() for CPU time, and gettimeofday() for calendar time. All other choices would be non-portable.
--
comp.lang.c.moderated - moderation address: clcm@xxxxxxxxxxxx -- you must
have an appropriate newsgroups line in your header for your mail to be seen,
or the newsgroup name in square brackets in the subject line. Sorry.
.



Relevant Pages

  • Is anyone seeing BIND 9.3.4-P1 use all CPU time on 6.2-STABLE?
    ... going into what appears to be a tight loop calling gettimeofday(). ... is using all CPU time on the box. ... real memory = 402587648 ...
    (freebsd-stable)
  • Re: Measuring time
    ... You have clockfor CPU time, and gettimeofday() for calendar ... thinking of timeand the struct tm stuff. ... have an appropriate newsgroups line in your header for your mail to be seen, ...
    (comp.lang.c.moderated)
  • Re: Measuring time
    ... You have clockfor CPU time, and gettimeofday() for calendar ... it's specified by POSIX, ... Standard C provides the timefunction, ... have an appropriate newsgroups line in your header for your mail to be seen, ...
    (comp.lang.c.moderated)
  • Re: Is anyone seeing BIND 9.3.4-P1 use all CPU time on 6.2-STABLE?
    ... On Mon, 29 Oct 2007, Scott Lambert wrote: ... going into what appears to be a tight loop calling gettimeofday(). ... is using all CPU time on the box. ...
    (freebsd-stable)