delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mailnull set sender to djgpp-bounces using -f |
From: | "Alex Vinokur" <alexvn AT bigfoot DOT com> |
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: | <aa5bqv$7v7pd$1@ID-79865.news.dfncis.de> |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1020422093607 DOT 11473G-100000 AT is> <aa3h0u$7i4da$1 AT ID-79865 DOT news DOT dfncis DOT de> <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" <eliz AT is DOT elta DOT co DOT il> wrote in message news:7458-Tue23Apr2002221728+0300-eliz AT is DOT elta DOT co DOT il... | > From: "Alex Vinokur" <alexvn AT bigfoot DOT com> | > 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 ====================
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |