Article View: fr.comp.lang.c
Article #15129Re: notion de temps
From: Emmanuel Delahaye
Date: Wed, 05 Oct 2005 17:37
Date: Wed, 05 Oct 2005 17:37
21 lines
1862 bytes
1862 bytes
Pierre Maurette wrote on 05/10/05 : >>> La seule chose portable que je vois, c'est clock() de <time.h>: >> >> Mmmh. clock() te donne une estimation du temps pass� dans ton programme; >> c'est diff�rent du temps qui passe (celui de l'horloge), qui est mod�lis� >> par time(). > J'ai toujours eu des doutes l�-dessus, sous Windows. Je ne pense pas que > clock() mesure le temps dans la t�che, mais un temps depuis le d�marrage, > genre GetTickCount() ou RDTSC. Si tu as des doutes relit la norme. On ne v�rifie pas un comportement avec une impl�mentation qui a le droit d'�tre incorrecte. -- Emmanuel The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html The C-library: http://www.dinkumware.com/refxc.html "It's specified. But anyone who writes code like that should be transmogrified into earthworms and fed to ducks." -- Chris Dollin CLC
Technical Details
Message-ID:
<mn.2c997d5a6a5ee7f4.15512@YOURBRAnoos.fr>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!infeed-1.proxad.net!news6-e.free.fr!not-for-mailReferences:
<dhuute$h61$1@apollon.grec.isp.9tel.net> <mn.2a1a7d5afd420743.31483@laposte.net> <di03lg$l0r$1@shakotay.alphanet.ch> <mn.2ab87d5aabd61e84.31483@laposte.net>Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,4e02ca09709eaded X-Google-Attributes: gidf9822,public X-Google-Language: FRENCH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!infeed-1.proxad.net!news6-e.free.fr!not-for-mail Subject: Re: notion de temps From: "Emmanuel Delahaye" <emdel@YOURBRAnoos.fr> References: <dhuute$h61$1@apollon.grec.isp.9tel.net> <mn.2a1a7d5afd420743.31483@laposte.net> <di03lg$l0r$1@shakotay.alphanet.ch> <mn.2ab87d5aabd61e84.31483@laposte.net> Newsgroups: fr.comp.lang.c Message-ID: <mn.2c997d5a6a5ee7f4.15512@YOURBRAnoos.fr> X-Newsreader: MesNews/1.04.00.00-fr Date: Wed, 05 Oct 2005 19:37:59 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit Lines: 23 Organization: Guest of ProXad - France NNTP-Posting-Date: 05 Oct 2005 19:37:59 MEST NNTP-Posting-Host: 81.65.109.202 X-Trace: 1128533879 news6-e.free.fr 14042 81.65.109.202:29675 X-Complaints-To: abuse@proxad.net