Mail Archives: djgpp/2002/04/24/00:31:44
"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();
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++)
some-get-time-function() : Resolution = 1e-06 secs or higher.
mailto:alexvn AT bigfoot DOT com
mailto:alexvn AT go DOT to
- Raw text -