Commit a7866930 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

applied Geert Kloosterman's patch to fix --repeat --timing output Daniel

* xmllint.c: applied Geert Kloosterman's patch to fix
  --repeat --timing output
Daniel
parent 1984094c
Tue Dec 4 14:13:44 CET 2001 Daniel Veillard <daniel@veillard.com>
* xmllint.c: applied Geert Kloosterman's patch to fix
--repeat --timing output
Thu Nov 29 17:10:22 CET 2001 Daniel Veillard <daniel@veillard.com>
* parser.c: Robin Berjon <robin@knowscape.com> found a case
......
......@@ -1082,14 +1082,14 @@ main(int argc, char **argv) {
} else
parseAndPrintFile(argv[i]);
files ++;
}
if ((timing) && (repeat)) {
long msec;
gettimeofday(&end, NULL);
msec = end.tv_sec - begin.tv_sec;
msec *= 1000;
msec += (end.tv_usec - begin.tv_usec) / 1000;
fprintf(stderr, "100 iteration took %ld ms\n", msec);
if ((timing) && (repeat)) {
long msec;
gettimeofday(&end, NULL);
msec = end.tv_sec - begin.tv_sec;
msec *= 1000;
msec += (end.tv_usec - begin.tv_usec) / 1000;
fprintf(stderr, "100 iterations took %ld ms\n", msec);
}
}
}
if (generate)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment