X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "Alex Vinokur" Newsgroups: comp.os.msdos.djgpp Subject: Re: uclock_t & gcc 3.0.4 on Windows-2000 Date: Wed, 24 Apr 2002 07:22:14 +0200 Organization: Scopus Lines: 47 Message-ID: References: <7458-Tue23Apr2002221728+0300-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: gateway.scopus.net (62.90.123.5) X-Trace: fu-berlin.de 1019622047 8363821 62.90.123.5 (16 [79865]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" wrote in message news:7458-Tue23Apr2002221728+0300-eliz AT is DOT elta DOT co DOT il... | > From: "Alex Vinokur" | > Newsgroups: comp.os.msdos.djgpp | > Date: Tue, 23 Apr 2002 14:38:27 +0200 | > | > So, what is alternative ? | > * rusage ? Does it work ? | > * something else ? | | It depends on what are you trying to accomplish. Can you tell some | more details? For instance, something like (pseudo-code) : void foo () { start_time = some-get-time-function(); // stuff end_time = some-get-time-function(); assert (start_time <= end_time); cout << (end_time - start_time) << endl; } int main () { for (int i = 0; i < TOTAL-ITERATIONS; i++) { foo (); } } some-get-time-function() : Resolution = 1e-06 secs or higher. -- ==================== Alex Vinokur http://up.to/alexvn http://go.to/alexv_math mailto:alexvn AT bigfoot DOT com mailto:alexvn AT go DOT to ====================