summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/main.c b/main.c
index 4c3b135..e36405b 100644
--- a/main.c
+++ b/main.c
@@ -96,11 +96,12 @@ void
print_stats (const char *id, size_t n, struct timeval *tv)
{
double duration = tv->tv_sec + (tv->tv_usec / 1000000.);
- printf ("% 10s: % 3is%06ius\t%fns\t%9.3f (1/s)\n",
- id,
- (int) tv->tv_sec, (int) tv->tv_usec,
- 1000000000. * duration / n,
- n / duration);
+ fprintf (stderr,
+ "% 10s: % 3is%06ius\t%fns\t%9.3f (1/s)\n",
+ id,
+ (int) tv->tv_sec, (int) tv->tv_usec,
+ 1000000000. * duration / n,
+ n / duration);
}
/* Options. */