Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C Moderated > Re: Measuring t...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 1033 of 1134
Post > Topic >>

Re: Measuring time

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.
 




 4 Posts in Topic:
Measuring time
kostas.tzoumas@[EMAIL PRO  2008-01-12 19:01:04 
Re: Measuring time
=?ISO-8859-1?Q?Hans-Bernh  2008-01-14 12:49:54 
Re: Measuring time
Keith Thompson <kst-u@  2008-02-17 12:04:02 
Re: Measuring time
=?ISO-8859-1?Q?Hans-Bernh  2008-03-08 12:19:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 3:38:30 CDT 2008.