by Keith Thompson <kst-u@[EMAIL PROTECTED]
>
Feb 17, 2008 at 12:04 PM
Hans-Bernhard Br=F6ker <HBBroeker@[EMAIL PROTECTED]
> writes:
> kostas.tzoumas@[EMAIL PROTECTED]
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-****table.
gettimeofday() is also non-****table; it's specified by POSIX, but not
by the C standard. Standard C provides the time() function, but its
resolution is implementation-defined (1 second is typical).
--=20
Keith Thompson (The_Other_Keith) <kst-u@[EMAIL PROTECTED]
>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
--
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
-- 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.